title: Load a specific viewController on push notification Swift 2 AppDelegate
body: <p>I want to open a specific view controller (a hidden one, because it's only accessible when receiving a certain push notification (it's not accessible through the tab bar)) and I've been able to do this but I'm facing a problem..</p>
  
  <p>My app has a custom Tab Bar controller called <code>RootViewController</code>. When you click on a notification with the special value it shows an alert view asking whether the user wants to open the notification or not.</p>
  
  <p>The notification triggers bringing a specific view controller to the front but
  the problem is that I don't have access to the tab bar anymore.</p>
  
  <p>I don't know how to achieve this.</p>
  
  <p>This is my code in <code>AppDelegate.m</code>:</p>
  
  <pre><code>var presentedVC = self.window?.rootViewController as? UINavigationController
  while (presentedVC!.navigationController != nil)  {
      presentedVC = presentedVC!.navigationController
  }
  let storyboard = UIStoryboard(name: "Main", bundle: nil)
  let destinationViewController = storyboard.instantiateViewControllerWithIdentifier("PushNotificationView") as? NotTestViewController
  
  destinationViewController?.url = self.url!
  presentedVC?.presentViewController(destinationViewController!, animated: true, completion: nil)
  
  })
  )
  alertCtrl.addAction(UIAlertAction(title: "Cancelar", style: .Destructive, handler: nil))
  </code></pre>
  
  <p>This code works but not with the desired behaviour. </p>
  
  <p>Any ideas what I am missing?</p>
  
  <p>Thank you so much</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I've changed the <code>RAMTabBarAnimationController</code> to <code>TabBarController</code> because <code>RAMTabBarAnimationController</code> does not inherit from <code>TabBarController</code>. But I still see the same behaviour.</p>