iOS 毛玻璃效果参考
来源:互联网 发布:学生开淘宝店怎么经营 编辑:程序博客网 时间:2024/06/16 04:27
- (void)viewDidLoad {
[superviewDidLoad];
[superviewDidLoad];
self.imageView= [[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"4"]];
self.imageView.frame= self.view.bounds;
self.imageView.frame= self.view.bounds;
/*UIBlurEffectStyleExtraLight, 白色效果
UIBlurEffectStyleLight, 中
UIBlurEffectStyleDark 黑色效果*/
UIBlurEffect *blurEffect = [UIBlurEffecteffectWithStyle:UIBlurEffectStyleExtraLight];
self.blurView= [[UIVisualEffectViewalloc]initWithEffect:blurEffect];
self.blurView.frame= self.view.bounds;
//透明度 0透明1不透明
self.blurView.alpha= 0.3f;
//将毛玻璃效果添加到控件上
[self.imageViewaddSubview:self.blurView];
//控件添加到视图上
UIBlurEffectStyleDark 黑色效果*/
UIBlurEffect *blurEffect = [UIBlurEffecteffectWithStyle:UIBlurEffectStyleExtraLight];
self.blurView= [[UIVisualEffectViewalloc]initWithEffect:blurEffect];
self.blurView.frame= self.view.bounds;
//透明度 0透明1不透明
self.blurView.alpha= 0.3f;
//将毛玻璃效果添加到控件上
[self.imageViewaddSubview:self.blurView];
//控件添加到视图上
[self.viewaddSubview:self.imageView];
}
1 0
- iOS 毛玻璃效果参考
- iOS 毛玻璃效果
- ios 毛玻璃效果
- iOS 图片毛玻璃效果
- IOS毛玻璃效果
- ios毛玻璃效果
- iOS:毛玻璃效果
- iOS毛玻璃效果
- iOS 毛玻璃效果
- ios毛玻璃效果
- iOS毛玻璃效果
- iOS开发 - 毛玻璃效果
- iOS 毛玻璃效果
- IOS毛玻璃效果
- iOS毛玻璃效果
- 毛玻璃效果iOS
- ios 毛玻璃效果
- iOS毛玻璃效果实现
- spring mvc文件下载
- Android6.0 ViewGroup/View 事件分发机制详解
- 1.4五分钟破密DDOS攻击
- cc、gcc、g++、CC的区别概括【转】
- 【zookeeper系列】ZK典型的应用场景
- iOS 毛玻璃效果参考
- mysql 执行计划走索引
- [bzoj4503]两个串
- Retrofit Https请求
- Hadoop 3.0纠删码(Erasure Coding):节省一半存储空间
- 刚过六一
- 环状链表unique
- Redis和Memcache对比
- 1.5五分钟解决域名备案问题