UIVisualEffectView 官方的模糊效果
/*! 三种模糊的形式
typedef NS_ENUM(NSInteger, UIBlurEffectStyle) {
UIBlurEffectStyleExtraLight,
UIBlurEffectStyleLight,
UIBlurEffectStyleDark
} NS_ENUM_AVAILABLE_IOS(8_0);
*/
self.blurImageView = [[UIImageView alloc] initWithFrame:self.view.frame];
self.blurImageView.image = newImage;
UIVisualEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];
UIVisualEffectView *visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
self.visualEffectView = visualEffectView;
visualEffectView.alpha = 0.7;
visualEffectView.frame = self.blurImageView.bounds;
[self.blurImageView addSubview:visualEffectView];