title: Warning: Attempt to present LastViewController on UINavigationController whose view is not in the window hierarchy
body: <p>This is how my app is laid out:</p>
  
  <p><img src="https://i.stack.imgur.com/Fibrv.png" alt="Storyboard layout"></p>
  
  <p>After a timer is done in my second to last view controller I run this code:</p>
  
  <pre><code>UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"iPhone_Storyboard" bundle:nil];
  LastViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"last"];
  vc.value = numberValue;
  [self presentViewController:vc animated:YES completion:nil];
  </code></pre>
  
  <p>The last view controller is presented but I get this error message:</p>
  
  <pre><code>Warning: Attempt to present LastViewController on UINavigationController whose view is not in the window hierarchy!
  </code></pre>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>My new layout:</p>
  
  <p><img src="https://i.stack.imgur.com/WjzbF.png" alt="New storyboard layout"></p>
  
  <p>Still getting same error :(</p>