在背景图像视图中模糊图像 iOS
Blur the image in image view at Background iOS
我想将图像视图放在 window 的背景上,在图像视图上方我放置了 table 视图,transparent.I 希望背景图像模糊.谢谢..
在iOS8中你可以使用UIVisualEffect模糊视图
UIVisualEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];// explore other effects too
UIVisualEffectView *visualEffectView =[[UIVisualEffectView alloc] initWithEffect:blurEffect];
visualEffectView.frame = YOURFRAME; // set frame
[visualEffectView setAlpha:1.0];// set as you like
[YOURVIEW addSubview:visualEffectView]; //add on your view where you want
我想将图像视图放在 window 的背景上,在图像视图上方我放置了 table 视图,transparent.I 希望背景图像模糊.谢谢..
在iOS8中你可以使用UIVisualEffect模糊视图
UIVisualEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];// explore other effects too
UIVisualEffectView *visualEffectView =[[UIVisualEffectView alloc] initWithEffect:blurEffect];
visualEffectView.frame = YOURFRAME; // set frame
[visualEffectView setAlpha:1.0];// set as you like
[YOURVIEW addSubview:visualEffectView]; //add on your view where you want