title: Presenting transparent view controller over another
body: <p>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.</p>
  
  <p>What happened is that i see a black background in the presented view, although its clear colour.</p>
  
  <p>I have also read here, and did exactly the same :
  <a href="https://stackoverflow.com/questions/11236367/display-clearcolor-uiviewcontroller-over-uiviewcontroller">Display clearColor UIViewController over UIViewController</a></p>
  
  <pre><code>//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];
  </code></pre>