title: iOS switch rootViewController not working
body: <p>I have a login view that checks to see if there are default settings, then syncs data. If there are no default settings, the view waits for the user to login. if there are settings and the data syncs correctly, it should switch to my split view.</p>
  
  <p>The code works if the user enters their login information. It syncs the data, then switches the view. If the user is already logged in, it hits the function and doesnt switch the view.</p>
  
  <p>Here is the code being called by both paths:</p>
  
  <pre><code>-(void)redirect{
      NSLog(@"Redirect@");
      UISplitViewController *split = [self.storyboard instantiateViewControllerWithIdentifier:@"orders_split"];
      [self.view.window setRootViewController:split];
  }
  </code></pre>
  
  <p>"Redirect@" shows in the log on the initial load if the user has already logged in once. I have confirmed that there are no sync errors, it hits the function but does not perform the switch.</p>
  
  <p>I am moving from a standard view with nav controller to a splitview, so I cannot use a manual segue trigger.</p>