iOS 毛玻璃效果设置

//设置毛玻璃效果
+(void)blurEffrct:(UIView *)view{
    UIBlurEffect* effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
    UIVisualEffectView* effectView = [[UIVisualEffectView alloc] initWithEffect:effect];
    effectView.frame =view.bounds;
    [view addSubview:effectView];

}

 

 [Healp blurEffrct:bgImageVIew];//设置毛玻璃效果

 

posted @ 2017-08-26 17:14  LiziBlog  阅读(303)  评论(0编辑  收藏  举报