iOS毛玻璃效果
作者:
聆默无语 | 来源:发表于
2017-03-05 16:12 被阅读12次 UIImageView *backImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"leftBackView"]];
[self.view addSubview:backImageView];
//添加毛玻璃效果
UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
UIVisualEffectView *effectview = [[UIVisualEffectView alloc] initWithEffect:blur];
effectview.alpha = 0.90f;
effectview.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);
[backImageView addSubview:effectview];

使用毛玻璃前效果

使用毛玻璃后效果
本文标题:iOS毛玻璃效果
本文链接:https://www.haomeiwen.com/subject/mdkegttx.html
网友评论