I am trying to present a view controller over another one, where the upper will be transparent , and the bottom would have this blur effect.
What happened is that i see a black background in the presented view, although its clear colour.
I have also read here, and did exactly the same : Display clearColor UIViewController over UIViewController
//to present
PillView *pillv=[[PillView alloc]initWithPill:pill WithNum:num];
pillv.delegate=self;
UIVisualEffect *blurEffect;
blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
UIVisualEffectView *visualEffectView;
visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
visualEffectView.frame=CGRectMake(0, 0, self.view.frame.size.width, [Globals sharedGlobals].titleHeight*self.view.frame.size.height);
[self.view addSubview:visualEffectView];
self.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentViewController:pillv animated:NO completion:nil];