I'm trying to segue to a VC that is not the Root VC.
@IBAction func composeJournalTapped(sender: AnyObject) {
self.tabBarController?.selectedIndex = 2
let journalVC = self.storyboard?.instantiateViewControllerWithIdentifier("JournalEntryTableViewController") as! JournalEntryTableViewController
self.navigationController?.pushViewController(journalVC, animated: true)
}
I know the obvious answer would be to send a push segue to that VC, but that does not switch tabs. I want to switch tabs and also switch to a viewController within that tab which isn't the root. The above code strictly switches tabs. In other words, I want to switch from index 1 to index 2, then push segue from index 2 rootVC to destinationVC.