title: How to use custom Navigationcontroller in AppDelegate by using a Storyboard
body: <p>I've got a problem concerning Navigationcontroller in AppDelegate. I'm using a storyboard, which looks like this: </p>
  
  <p><img src="https://i.stack.imgur.com/SGhud.png" alt="Storyboard"></p>
  
  <p>As a result of using Push notifications, i've got the following function in my AppDelegate File:</p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
  //...
  }
  </code></pre>
  
  <p>When the notification arrives I want to initialize the "Detail View" - Controller which needs an ID as a parameter. This ID is part of my payload so it is present in <code>didReceiveRemoteNotification</code>.</p>
  
  <p>I'd like to to the follwing:</p>
  
  <pre><code>DetailView *detail = [storyboard instantiateViewControllerWithIdentifier:@"detail"];
  
  detail.conversationID = theID; 
  
  [self.navigationController pushViewController:detail animated:YES];
  </code></pre>
  
  <p>My question at this point is: how can I get the navigation controller? I've searched for a function like "getNavigationControllerByIdentifier" or something like this, but found nothing. I can't instantiate the Detail View Controller directly because the navigationbar is missing there. </p>
  
  <p>I hope you understand what I mean - if you think my approach is completly wrong please correct me ;o) </p>
  
  <p>Just another small information: It's not important for me that the back button in the Detail View Controller goes back to the Table View - it's enough when it links to the controller with the button "Load Table View".</p>
  
  <p>Thank you for help!</p>