简体   繁体   中英

Push segue doesn't work on IOS 8.0

I have a problem, I used "push" to pass from a view to another one, and now with the upgrade sdk 8.0, it's deprecated. So what should i use?

If you want to use a Storyboard Segue you have to use Show (eg Push) segue. This could be a possible duplicate: Adaptive segue in storyboard Xcode 6. Is push deprecated?

To make the new Show segue to acts like a Push segue, the controller has to be embedded in a navigation controller, otherwise, it acts simply like a modal segue. To embed your controller in a NavigationController, select the TableViewController from the storyboard, than select Editor->Embed In->Navigation Controller from the Xcode menu.

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