iOS8 中取消了原来segue中的push和modal等,用了新的方法。
我的翻译:
Show: 在master或detail区域展现内容(典型的如iPad的设置界面,左侧是master,右侧是detail),究竟是在哪个区要取决于屏幕上的内容,如果不分master/detail,就单纯的把新的内容push到当前view controller stack的顶部
Show Detail: 大致同Show,在detail区域展现内容,如果不分master/detail,新的内容取代当前view controller stack的顶部
Present Modally:模态展示内容
Present as Popover:在当前的view上出现一个小窗口来展示内容,无处不在的“选中文字后出现 复制/翻译 按钮就是这个
Custom:自定义的
Name | Interface Builder Symbol | Description |
---|---|---|
Show | | Present the content in the detail or master area depending on the content of the screen. If the app is displaying a master and detail view, the content is pushed onto the detail area. If the app is only displaying the master or the detail, the content is pushed on top of the current view controller stack. |
Show Detail | | Present the content in the detail area. If the app is displaying a master and detail view, the new content replaces the current detail. If the app is only displaying the master or the detail, the content replaces the top of the current view controller stack. |
Present Modally | | Present the content modally. There are options to choose a presentation style ( |
Present as Popover | | Present the content as a popover anchored to an existing view. There is an option to specify the possible directions of the arrow shown on one edge of the popover view ( |
Custom | | A custom segue enabling you to write your own behaviors. |
Push (Deprecated) | | Present the content by pushing it onto the current stack of view controllers. |
Modal (Deprecated) | | Present the content modally on top of the existing screen. The options are the same as Present Modally. |
Popover (Deprecated) | | Present the content as a popover. The options are the same as Present as Popover. |
Replace (Deprecated) | | Replace the top view controller on the screen with the new content. |
参考资料:http://www.cocoachina.com/bbs/read.php?tid-238980.html