简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM