标签:毛玻璃效果
原图片:
效果图
例子:
UIImageView *imageView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"12.jpg"]];
imageView.frame =CGRectMake(0, 0, self.view.frame.size.width, 400);
[self.view addSubview:imageView];
[imageView release];
例子:
UIBlurEffect *effect=[UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];
例子:
UIVisualEffectView *effectView =[[UIVisualEffectView alloc] initWithEffect:effect];
effectView.alpha =0.5;
effectView.frame =imageView.frame;
[imageView addSubview:effectView];
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:毛玻璃效果
原文地址:http://blog.csdn.net/mltianya/article/details/47361861