Segue back button disappears in iOS 9

Prior to iOS 9, I developed an application focused on iOS 8.4. I used several UITableView linked to each other via segue of kind "Show (like Push)". It worked perfectly with the correct behavior: every time I switched from a UITableView to another, the "Back" button appeared, so the user can return to the previous scene; the back button also appeared from UITableView to UIViewController using the same session.

Now I updated to the latest version of Xcode and targeted the application on iOS 9.0, I had this problem: now, if I switch from UITableView to another UITableView , the back button does not do more, but if I switch from UITableView to UIViewController , the opposite will appear button. I saw that other developers had a similar problem (as you see here, here and here ), but I don’t understand how they decided (except for the third link, but this is not my case). Does anyone know how I can get back to work? thanks in advance

enter image description here

+5
source share
2 answers

It looks like the guy who posted the second link has the same problem as you. In a comment, he said that the way he fixed it was getting rid of additional navigation controllers:

No need to enter a navigation controller for each view. set only the initial view of the navigation controller.

So this is what I propose to do. Place the navigation controller on the first controller only. Get rid of everyone else.

+4
source

So, thanks to the suggestions of Caleb and ogres, I solved the problem in such a way as you can see in this screenshot, I hope this helps anyone who has the same problem!

enter image description here

If you have two UITableViews and you want to link them together, you just need a NavigationController .

+2
source

Source: https://habr.com/ru/post/1235004/


All Articles