iOS系统自带毛玻璃效果
来源:互联网 发布:松下多功能机软件下载 编辑:程序博客网 时间:2024/05/16 15:09
UIImageView* imageview = [[UIImageViewalloc]initWithImage:[UIImageimageNamed:@"屏幕快照2015-12-18下午10.51.33"]];
imageview.userInteractionEnabled= YES;
imageview.contentMode= UIViewContentModeScaleAspectFit;
imageview.frame= CGRectMake(0,0,375,668);
[self.viewaddSubview:imageview];
UIBlurEffect * blur = [UIBlurEffecteffectWithStyle:UIBlurEffectStyleDark];
UIVisualEffectView * effectview = [[UIVisualEffectViewalloc]initWithEffect:blur];
effectview.frame= CGRectMake(0,0, imageview.frame.size.width, imageview.frame.size.height);
[imageview addSubview:effectview];
UIButton *button = [UIButtonbuttonWithType:UIButtonTypeSystem];
button.frame= CGRectMake(10,50,60,60);
[button setTitle:@"btn"forState:UIControlStateNormal];
imageview.userInteractionEnabled= YES;
imageview.contentMode= UIViewContentModeScaleAspectFit;
imageview.frame= CGRectMake(0,0,375,668);
[self.viewaddSubview:imageview];
UIBlurEffect * blur = [UIBlurEffecteffectWithStyle:UIBlurEffectStyleDark];
UIVisualEffectView * effectview = [[UIVisualEffectViewalloc]initWithEffect:blur];
effectview.frame= CGRectMake(0,0, imageview.frame.size.width, imageview.frame.size.height);
[imageview addSubview:effectview];
UIButton *button = [UIButtonbuttonWithType:UIButtonTypeSystem];
button.frame= CGRectMake(10,50,60,60);
[button setTitle:@"btn"forState:UIControlStateNormal];
[effectview.contentViewaddSubview:button];
1 0
- iOS系统自带毛玻璃效果
- iOS 8系统自带毛玻璃效果实现
- iOS开发UIBlurEffect系统自带毛玻璃效果
- iOS自带的毛玻璃的效果
- UIBlurEffect系统自带毛玻璃效果
- iOS-系统毛玻璃效果
- iOS 8 系统自带BlurEffect 毛玻璃特效
- iOS 8 系统自带BlurEffect 毛玻璃特效
- iOS 8 系统自带BlurEffect 毛玻璃特效
- iOS 8 系统自带BlurEffect 毛玻璃特效
- iOS8 苹果自带的毛玻璃效果
- ios 系统 自带动画效果使用
- ios 系统自带模糊效果
- iOS8后,系统自带BlurEffect 毛玻璃特效
- iOS UITabBarItem去掉系统自带的渲染效果
- iOS 毛玻璃效果
- ios 毛玻璃效果
- iOS 图片毛玻璃效果
- ThinkPHP函数详解:C方法
- 软件测试理论知识总结
- iOS设备中WiFi、蓝牙和飞行模式的开启与关闭
- 程序员必须知道的10大基础实用算法及其讲解
- NSCFString与NSString类型的字符串导致的崩溃问题
- iOS系统自带毛玻璃效果
- UICollectionView自定义布局教程:Pinterest (2)
- C/C++字符串
- VC程序运行时间测试函数
- OpenCV中Mat的详解
- ThinkPHP函数详解:D方法
- HTTP响应头和请求头信息对照表
- MyString类的实现--C++ primer plus 读书笔记
- jQuery UI resizable bug