简体   繁体   中英

dismissViewControllerAnimated close all view controller to root [swift]

let's say I've 4 view controller

page 1 ----showdetail----> page 2 ----showdetail----> page 3 ----showdetail----> page 4

I want to go back to page 3 from page 4 with self.dismissViewControllerAnimated(true, completion: nil) . It works fine in iOS 9 but it closes all view controller to page 1 when i try it in iOS 8 device

You probably want to use Present Modally segue instead of Show Detail . Here there is a good explanation for each kind of segues What's the difference between all the Selection Segues?

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