我知道一些模糊图像的方法-- Apple class(ApplyLightEffect)和CIFilter,但它们都是用UIImage来创建模糊的。
我需要简单地创建一些上面的图层正在移动,并模糊这一层,所以后面的一切都是模糊的。模糊效果应该非常温和。
我怎么能用一种简单的方式得到它?有更多的方法来应用类似的效果来模糊我可以检查吗?(这是动态的)
谢谢。
发布于 2014-04-30 17:26:40
请查看此iOS框架:
而不是像这样实例化视图:
UIView *view = [[UIView alloc] init];导入FXBlurView并执行以下操作:
FXBlurView *blurredView = [[FXBlurView alloc] init];还可以设置一些自定义参数:
[blurredView setBlurRadius:30]; //Sets radius of blur
[blurredView setDynamic:NO]; //Disables whether the blur updates in real time.
[blurredView setBlurEnables:YES]; //Enables/disables the blur.
[blurredView setTintColor:nil]; //Set to nil to get rid of the blue glow from the default iOS tint color.这样就行了。
https://stackoverflow.com/questions/23394078
复制相似问题