我想实现一个View来对UIImage进行模糊效果,当一个新的Cell在一个tableView中有一个图像时,View可以更改图像幻灯片进入屏幕,我使用StackBluriOS来模糊
答案 0 :(得分:0)
模糊UIImage iOS 8
// show image
self.imageView.image = [UIImage imageNamed:@"boat6"];
// create effect
UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
// add effect to an effect view
UIVisualEffectView *effectView = [[UIVisualEffectView alloc]initWithEffect:blur];
effectView.frame = self.imageView.bounds;