使用虚化,可以使图片显得模糊,有神秘感。
//添加毛玻璃
UIVisualEffect *blurEffect =[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
_xView =[[UIVisualEffectView alloc]initWithEffect:blurEffect];
_xView.frame =self.view.frame;
_xView.alpha =.7;
[self.view addSubview:_xView];