Reputation: 1349
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
?
Upvotes: 3
Views: 3963
Reputation: 2196
You should push only UIViewController subclasses inside a navigation controller. This question might help!
Upvotes: 1