iOS SDK 自 iOS8.0 开始提供了背景虚化的相关 api,简单的几句代码就可以实现虚化背景,毛玻璃特效,有需要的赶紧试试!
UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
UIVisualEffectView *effectview = [[UIVisualEffectView alloc] initWithEffect:blur];
effectview.frame = CGRectMake(0, 0, _backView.frame.size.width, CGRectGetHeight(_backView.frame));
effectview.alpha = .6;
[_backView addSubview:effectview];