实现一个视图以对UIImage进行模糊效果,并在TableView Slide时更改图像

时间:2015-07-08 09:21:10

标签: ios uiimage

我想实现一个View来对UIImage进行模糊效果,当一个新的Cell在一个tableView中有一个图像时,View可以更改图像幻灯片进入屏幕,我使用StackBluriOS来模糊

1 个答案:

答案 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;