简体   繁体   English

Push segue在IOS 8.0上不起作用

[英]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. 我有一个问题,我使用“推”从一个视图传递到另一个视图,现在使用sdk 8.0升级程序已被弃用。 So what should i use? 那我该怎么用?

If you want to use a Storyboard Segue you have to use Show (eg Push) segue. 如果要使用情节提要Segue,则必须使用Show(例如Push)Segue。 This could be a possible duplicate: Adaptive segue in storyboard Xcode 6. Is push deprecated? 这可能是重复的: 情节提要Xcode 6中的自适应segue。是否不赞成使用push?

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. 为了使新的Show segue像Push segue一样工作,必须将控制器嵌入导航控制器中,否则,它就像模式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. 要将控制器嵌入NavigationController中,请从情节提要中选择TableViewController,然后从Xcode菜单中选择Editor-> Embed In-> Navigation Controller

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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