Differences between several types of sews in storyboard: Push, modal, popover, replace and custom
Source: Internet
Author: User
In storyboard, segue has several different types. In iPhone and iPad development, segue has different types. In the iPhone, segue has three different types: Push, modal, and custom. The difference between these types lies in the way new pages appear. In iPad, there are five different types: Push, modal, popover, replace, and custom.
Modal Mode ConversionThe most common scenario is that the new scenario completely covers the old one. Users cannot interact with the previous scenario unless they disable it first.
It is the standard switching mode in viewcontroller, including fading out or something. You can choose to switch the animation. Modalview: A view is displayed. You can only operate on the view, but not switch to another view. Unless you disable modalview. Modal view, the corresponding segue type is modal segue. * Modal: transition to another scene for the purposes of completing a task. After the user completes the operation in the pop-up modalview, it should dismiss the modal View Scene and switch back to the originalview.
PushThe push type usually requires the first interface to be a navigation controller.
It is the method that is used to draw from the right when the lower level of the navigation View Controller * Push: create a chain of scenes where the user can move forward or back. this segue type is used with navigation viewcontrollers.
Popover(IPAD only) Popover The new page is displayed in a floating window. * Popover (IPAD only): displays the scene in a pop-up "window" over top of the current view.
* Replace (IPAD only ):Replace the current scene with another. This is used in some specialized iPad viewcontrollers (e.g. Split-View Controller ).
CustomThis is the custom jump method. * Custom: used for programming a customtransition between scenes. Use the custom segue type http://ryan.easymorse.com In the storyboard /? P = 72
References:Use storyboard: pass data with segue
Introduction to storyboarding summary for http://www.cnblogs.com/mybkn/archive/2012/03/22/2411842.html wwdc2011 video
Http://blog.sina.com.cn/s/blog_834f346f0100s4jr.html storyboard encounters a segue Problem
Http://www.cocoachina.com/bbs/simple? T92552.html IOs: storyboard (2)
Http://blog.csdn.net/totogogo/article/details/7361191
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.