0

I want to blur a view behind the the popped up UIView. Is there anyway to achieve this programatically?

Thanks in advance!

nunofmendes
  • 3,731
  • 2
  • 32
  • 42
sam24
  • 99
  • 2
  • 10

1 Answers1

0

You can do this through many ways depending the iOS you are supporting. Here are two ways backwards compatible with before iOS8:

In iOS8 you can use a UIVisualEffectView. The process is simple and you can checkout this tutorial of Ray Wenderlich on how to do it.

Since you have asked a "programatically" way, here is a example using iOS-Blur library mentioned before:

JCRBlurView *blurView = [JCRBlurView new];
[blurView setFrame:CGRectMake(0.0f,0.0f,100.0f,100.0f)];
[self.view addSubview:blurView];
nunofmendes
  • 3,731
  • 2
  • 32
  • 42