iOS8之后,push被废弃。

Adding a Segue Between Scenes in a Storyboard

 

可以用show代替push。

 

 

 

Table 1  iOS segues

Name

Interface Builder Symbol

Description

Show

../Art/SB_H_segue_push_2x.png

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

../Art/SB_H_segue_push_2x.png

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

../Art/SB_H_segue_modal_2x.png

Present the content modally. There are options to choose a presentation style (UIModalPresentationStyle) and a transition style (UIModalTransitionStyle).

Present as Popover

../Art/SB_H_segue_popover_2x.png

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 (UIPopoverArrowDirection). There is also an option to specify the anchor view.

Custom

../Art/SB_H_segue_custom_2x.png

A custom segue enabling you to write your own behaviors.

Push (Deprecated)

../Art/SB_H_segue_push_2x.png

Present the content by pushing it onto the current stack of view controllers.

Modal (Deprecated)

../Art/SB_H_segue_modal_2x.png

Present the content modally on top of the existing screen. The options are the same as Present Modally.

Popover (Deprecated)

../Art/SB_H_segue_popover_2x.png

Present the content as a popover. The options are the same as Present as Popover.

Replace (Deprecated)

../Art/SB_H_segue_replace_2x.png

Replace the top view controller on the screen with the new content.

posted @ 2016-01-04 15:33  TSUBASA_OZORA  阅读(368)  评论(0编辑  收藏  举报