title: Objective C - After present modal view the root controller is incorrect
body: <p>The first view's name is <code>IntroPage</code>.
  The second view's name is <code>Search</code>.
  In the <code>viewDidAppear</code> I'm using this code:</p>
  
  <pre><code>Search *search = [self.storyboard instantiateViewControllerWithIdentifier:@"searchPage"];
  search.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
  [self presentViewController:search animated:YES completion:nil];
  </code></pre>
  
  <p>Everything is ok but when I want to see the current view</p>
  
  <pre><code>[UIApplication sharedApplication].keyWindow.rootViewController;
  </code></pre>
  
  <p>He shows me that the current view is "Intro" instead "Search" and it causes a lot of bugs.</p>
  
  <p>when I'm changing the code to this:</p>
  
  <pre><code>[self performSegueWithIdentifier:@"SearchPage" sender:self];
  </code></pre>
  
  <p>the problem is solved but I can't use this code because I need to add more properties with the transition.</p>