2
votes

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:

enter image description here

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?

1
Why are you embedding the last scene in its own navigation controller?Paulw11
i have a special transition navigation controller class I created for that controller @Paulw11John Jackson
it had no issue in iOS 8 and Xcode 6 @Paulw11John Jackson

1 Answers

0
votes

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. :)