毛玻璃效果iOS
来源:互联网 发布:淘宝短信催单技巧 编辑:程序博客网 时间:2024/05/21 09:13
一张清楚的图片变的模糊了,也就是所谓的毛玻璃效果,通过查看图层可以发现,它只是在原有的图片上加了一个View,而这个View具有毛玻璃效果,
图层查看如下图所示:
最终效果图如下图:
1 1 // 创建图片2 2 UIImageView *imgView = [[UIImageView alloc]initWithFrame:[UIScreen mainScreen].bounds];3 3 imgView.image = [UIImage imageNamed:@"1"];4 4 [self.view addSubview:imgView];5 5 //添加模糊效果6 6 UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];7 7 UIVisualEffectView *effectView = [[UIVisualEffectView alloc]initWithEffect:blurEffect];8 8 effectView.frame = [UIScreen mainScreen].bounds;9 9 [imgView addSubview:effectView];
1 0
- iOS 毛玻璃效果
- ios 毛玻璃效果
- iOS 图片毛玻璃效果
- IOS毛玻璃效果
- ios毛玻璃效果
- iOS:毛玻璃效果
- iOS毛玻璃效果
- iOS 毛玻璃效果
- ios毛玻璃效果
- iOS毛玻璃效果
- iOS开发 - 毛玻璃效果
- iOS 毛玻璃效果
- IOS毛玻璃效果
- iOS毛玻璃效果
- 毛玻璃效果iOS
- ios 毛玻璃效果
- iOS 毛玻璃效果参考
- iOS毛玻璃效果实现
- 004.unity相机
- [LeetCode]137. Single Number II
- HDU 2516 取石子游戏 [斐波那契博弈]
- 关于职业规划的思考
- [LeetCode]28 实现子字符串匹配
- 毛玻璃效果iOS
- hdu 5233 Gunner II (map离散化)
- 1.浮点数运算误差
- LeetCode OJ刷题历程——Sting to Integer(atoi)
- 数据结构 - 重要知识点
- 使用ThinkPHP保存时出现SHOW COLUMNS FROM
- 51nod 1182 完美字符串
- I2C SPI UART串行接口对比分析
- [leetcode Q43] Multiply String