How can I dismiss a modal segue then perform push segue to new view controller
问题 I'm trying to perform a push segue from a navigation controller , after dismissing a modal that was previously presented over the navigation controller . Inside modal ( UIViewController ): func textFieldShouldReturn(textField: UITextField) -> Bool { var searchNav = SearchNavigationController() self.dismissViewControllerAnimated(true, completion: {searchNav.goToNextView()}) return true } Inside SearchNavigationController : func goToNextView() { performSegueWithIdentifier(