我想将图像视图放在窗口的背景上,在图像视图上方放置了透明的表格视图。我希望背景中的图像是模糊的。感谢..
答案 0 :(得分:1)
在iOS 8中,您可以使用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