ios - does anyone can explain the difference between segues: show, show detail, present modally, present as popover -
in xcode 6 have above definition, can explain me when utilize what? totally lost - thanx in advance
refer link
1. show - pushes destination view controller onto navigation stack, moving source view controller out of way (destination slides overtop right left), providing button navigate source - on devices.
example: navigating inboxes/folders in mail.
2. show detail - replaces detail/secondary view controller when in uisplitviewcontroller no ability navigate previous view controller.
example: in mail service on ipad in landscape, tapping email in sidebar replaces view controller on right show new email.
3. nowadays modally - presents view controller in various different ways defined presentation option, covering previous view controller - commonly used nowadays view controller animates bottom , covers entire screen on iphone, on ipad it's mutual nowadays in centered box format overtop darkens underlying view controller.
example: tapping + button in calendar on iphone.
4. popover presentation - when run on ipad, destination appears in little popover, , tapping anywhere outside of popover dismiss it. on iphone, popovers supported default if performs popover presentation segue, nowadays destination view controller modally on total screen.
example: tapping + button in calendar on ipad (or iphone, realizing converted total screen presentation opposed actual popover).
5. custom - may implement own custom segue , have finish command on appearance , transition.
ios xcode xcode6 segue
No comments:
Post a Comment