title: Performing Segue from AppDelegate.swift
body: <p>I am trying to perform a segue after getting a notification. </p>
  
  <p>Here is what I have in my app delegate.</p>
  
  <pre><code>func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) {
  
  
              let viewController = self.window!.rootViewController!.storyboard!.instantiateViewControllerWithIdentifier("SecondViewController")
              self.window?.rootViewController = viewController
  
  
      }
  </code></pre>
  
  <p>This takes me directly to the view I would like it to go to, however the navbar and tab bar are hidden. From the app delegate, how do I perform a segue from one view to another? So that I can reach by second view as if I had pushed from my first? </p>