title: How can I programmatically present a view controller modally?
body: <p><strong>Edit:</strong> When solving this problem, I found that it is much easier to start with your <code>UITabBarController</code>, then perform login validation <em>via</em> your <code>AppDelegate.m</code>'s <code>didFinishLaunchingWithOptions:</code> method.</p>
  
  <p><em>Question:</em>
  This code is in the the <code>application didFinishLaunchingWithOptions:</code> method in my AppDelegate.m</p>
  
  <pre><code>if([result isEqualToString: @"log"])
  {
      UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
      UIViewController *ivc = [storyboard instantiateViewControllerWithIdentifier:@"TabBarControl"];
      [(UINavigationController*)self.window.rootViewController pushViewController:ivc animated:NO];
      NSLog(@"It's hitting log");
  }
  </code></pre>
  
  <p>It simply takes an HTTP response for <strong>the user being logged in</strong>, and takes them to my TabBarController. The problem is that it's using a <strong>push</strong> rather than a <strong>modal</strong> transition to display the page. Since presentModalViewController method is deprecated or deleted in iOS7, how can I programmatically force a modal presentation?</p>
  
  <p><strong>EDIT:</strong>
  <a href="https://imgur.com/vFFbTDW" rel="noreferrer"><img src="https://i.imgur.com/vFFbTDW.png" title="Hosted by imgur.com" /></a>)</p>