IOS 高斯模糊 (毛玻璃效果 UIVisualEffect)
2015-12-04 14:14
429 查看
Objective-C
Swift
StackOverFlow
UIVisualEffect *blurEffect; blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; UIVisualEffectView *visualEffectView; visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; visualEffectView.frame = imageView.bounds; [imageView addSubvi 4000 ew:visualEffectView];
Swift
var visualEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .Light)) as UIVisualEffectView visualEffectView.frame = imageView.bounds imageView.addSubview(visualEffectView)
StackOverFlow
相关文章推荐
- String的substring和subSequence的区别
- 关于uitableview上面的一块空白的问题
- django的request对象和response对象
- easyui--datetiembox日期组件
- iOS开发-UI控件:关于使用UISearchDisplayController
- [APUE]再读之 标准IO库
- easyui--timespinner时间微调组件
- 解决Value '0000-00-00 ' can not be represented as java.sql.Timest
- easyui--spinner
- spoj375 Query on a tree(树链剖分 边权 入门题)
- [MSSQL]在T-SQL语句中访问远程数据库(openrowset/opendatasource/openquery)
- 键盘(UITextInputTraits)
- Ⅰ.15 如何修改Squish函数
- easyui--datebox
- UESTC 764 失落的圣诞节 直接or线段树orRMQ
- iOS UIViewController 无法关闭自动旋屏(自动旋转、手动旋转、兼容IOS6之前系统)
- LeetCode(303)Range Sum Query - Immutable
- LeetCode(303)Range Sum Query - Immutable
- easyui--calendar日历组件
- requireJs笔记一