I want to blur a view behind the the popped up UIView. Is there anyway to achieve this programatically?
Thanks in advance!
I want to blur a view behind the the popped up UIView. Is there anyway to achieve this programatically?
Thanks in advance!
You can do this through many ways depending the iOS you are supporting. Here are two ways backwards compatible with before iOS8:
iOS-Blur (Similar to you implement a UIToolbar view)
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];