2015-03-31 164 views
1

我想將圖像視圖放在窗口的背景上方,圖像視圖的上方我放置了透明的表格視圖。我希望​​圖像在背景中是模糊的。感謝..在圖像視圖中模糊圖像在背景iOS

+0

確實[這太問題(http://stackoverflow.com/questions/18959411/controlling-the-screenshot-in- -ios-7-multitasking-switcher)有幫助嗎? – David 2015-03-31 12:39:44

+0

謝謝,但我希望完全模糊的圖像爲那個視圖 – Mansur 2015-03-31 12:52:34

+0

你有什麼更多信息或草圖你問?這將有助於獲得答案。 – David 2015-03-31 13:00:25

回答

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