Mansur
Mansur

Reputation: 187

Blur the image in image view at Background iOS

I want to place the image view on background of window,above the image view i have placed the table view which is transparent.I want image in background is to be blur. thanks..

Upvotes: 1

Views: 793

Answers (1)

Raheel Sadiq
Raheel Sadiq

Reputation: 9867

In iOS 8 you can use UIVisualEffect to blur views

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 

Upvotes: 1

Related Questions