I have some VC which should push to ANOTHER Navigation Controller. If I do just
self.navigationController?.pushViewController(self.storyboard!.instantiateViewControllerWithIdentifier("someID") as someVC, animated: true)
this is not working. I can add
dispatch_async(dispatch_get_main_queue()) {
self.navigationController?.pushViewController(self.storyboard!.instantiateViewControllerWithIdentifier("someID") as someVC, animated: true)
}
So it works but as I know it's not correctly way to use it. What I should use? presentViewController
?