Reputation: 860
I have three views in my IB, which are embedded in a navigation controller, which is embedded in a tab Controller. Every segue works. However, when I embed the last view in its own navigation controller and run the app, instead of being shown from the previous view, it is now presented modally, the tab Bar does not appear on the view, and all the navigation attributes that are supposed to be passed on aren't. Here is how the IB looks:
from my migration to swift 2, this was the only code change in my custom navigation controller class:
`override func viewDidLoad() { super.viewDidLoad()
self.interactivePopGestureRecognizer.enabled = false
self.delegate = self
}`
i was forced to unwrap the gesture by adding "!":
`override func viewDidLoad() { super.viewDidLoad()
self.interactivePopGestureRecognizer!.enabled = false
self.delegate = self
}`
Now I never had this issue in Xcode 6, iOS 8.. Why is this behavior occurring?
Upvotes: 2
Views: 243
Reputation: 3172
I encountered this issue before. Although my setup is not as similar as yours but I got a similar output. So, what I did is, I changed the segue type between the last navigation controller and the second table view controller to push(which is being deprecated). But this still works well in iOS 8. I am not sure it will work in your case.
Hope it helps. :)
Upvotes: 0