infernouk infernouk - 9 months ago 38
Swift Question

Popping View Controller when not using a Navigation Controller?

I have searched around and all cases of using the pop to return to a previous view controller seem to be based around using a navigation controller, I am using a tab bar controller and have no real need to the navigation controller and so havent implemented it.

I load this detailed view controller via a segue based on rowindex selected in a list controller and just need to close it when they are done reading with a close button.

Is there still a method that can be used to pop a view controller without it all being housed in a navigation controllers unnecessarily?


Answer Source

Why don't you use a Storyboard and use an Unwind Segue to go back to the prev. View? Take a look at this Unwind Segue, hope will help you.