title: presentViewController shows black sceen while UIModalTransitionStyleFlipHorizontal objective c
body: <p>I'm facing issue with the UIModalTransitionStyleFlipHorizontal, Which gives black screen at background while transition and shows the actual screen.</p>
  
  <p><a href="https://i.stack.imgur.com/foxlc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/foxlc.png" alt="enter image description here"></a></p>
  
  <p>After first time it shows the last view which added as rootview.</p>
  
  <p><a href="https://i.stack.imgur.com/d9N7S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d9N7S.png" alt="enter image description here"></a></p>
  
  <p>What actually I need to achieve is I don want to show the black and previous screen. It should show an empty screen background as like the below image.</p>
  
  <p><a href="https://i.stack.imgur.com/lM8xH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lM8xH.png" alt="enter image description here"></a></p>
  
  <p>The code I used to achieve the transition is </p>
  
  <pre><code>- (void)popViewController {
      UIViewController* rootController = [[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"MainViewController"];
  
      rootController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
      UINavigationController *navigation = [[UINavigationController alloc]initWithRootViewController:rootController];
  
      [self.window.rootViewController presentViewController:navigation animated:YES completion:nil];
      [self.window makeKeyAndVisible];
  }
  </code></pre>
  
  <p>I'm using storyboard with dynamic rootview.Anybody help me to fix it out.
  Thanks</p>