I have encountered this warning:
pushViewController:animated: called on while an existing transition or presentation is occurring; the navigation stack
i am using dispatch_async and its working. i tried to navigate back but didn't worked because navigation stack will not be updated.
let destVC = self.storyboard?.instantiateViewControllerWithIdentifier("HomeViewController") as! HomeViewController
self.presentViewController(destVC, animated: true, completion: {() -> Void in
dispatch_async(dispatch_get_main_queue(), {() -> Void in
self.navigationController?.popViewControllerAnimated(true)!
})
})