Beginner question regarding navigation in sample application

Hi Swift Experts,


maybe anyone can help me. I think it is quite easy for the most, but it

is time consuming. Sorry for that.


I'm new in swift/xcode development and I started with some small

applications and tests. So far so good, but now I want to start with some

more. So I start download a sample project from this website:


http://www.appcoda.com/sidebar-menu-swift/


Now I added a right Bar Button Item on the photo page and create a seque

to a new page ViewController. On this new view container I added a seque from a navigation bar

back to navigation controller of photo view (this works fine). But after the back navigation, the side bare menu

function did not work anymore.


If an expert has an idea, please give me hint.


Thanks in advance


Stefan

Answered by Xper2 in 17495022

You should not be adding a segue back to the Photo navigation controller because it will create a new Photo view instead of going back to it. If you used show/push to segue to the new page ViewController, the new page ViewController will already include a Back button to go back. If you used modal segue, the navigation bar button should be coded to dismiss the new page ViewController.

Accepted Answer

You should not be adding a segue back to the Photo navigation controller because it will create a new Photo view instead of going back to it. If you used show/push to segue to the new page ViewController, the new page ViewController will already include a Back button to go back. If you used modal segue, the navigation bar button should be coded to dismiss the new page ViewController.

Beginner question regarding navigation in sample application
 
 
Q