What are the differences between the segments: “show”, “show details”, “be present in different ways”, “be present as a popover”?

What do different segues do in Xcode 6?

+47
ios xcode xcode6 segue
09 Oct '14 at 20:18
source share
1 answer

1. Show . Pushes the destination view controller onto the navigation bar stack, moving the source view controller to the side (target slides overlap from right to left), providing a "Back" button to go back to the source - on all devices.

Example: moving mailboxes / folders to Mail.

2. Show Detail . Replaces the part / subview controller when there is no way in UISplitViewController to go back to the previous view controller.

Example. In the iPad inbox in landscape orientation, clicking on the email in the sidebar replaces the view controller on the right to show the new email.

3. Present Modally . Represents the view controller in various ways, as defined by the Presentation option, covering the previous view controller - it is most often used to represent the view controller, which is animated from below and covers the entire screen on the iPhone, but it is common on the iPad to present it in an overtone format with a centered rectangle. which obscures the main view controller.

Example: Pressing the + button on the calendar on iPhone.

4. Popover Presentation . When launched on an iPad, the destination appears in a small popover, and clicking anywhere outside that popover will reject it. Pop-ups are also available on the iPhone, but by default, if it runs a Popover Presentation segue, it will represent the default destination view controller in full screen mode.

Example: pressing the + button on the calendar on the iPad (or iPhone, realizing that it is converted to a full-screen representation, and not to the actual popover).

5. Custom . You can implement your own segment and fully control its appearance and transition.

- Adapted from version 2 of this entry .

+98
Dec 17 '14 at 4:34
source share



All Articles