
是在vIEwController中的标准切换的方式,包括淡出什么的,可以选切换动画。 ModalvIEw:就是会d出一个vIEw,你只能在该vIEw上 *** 作,而不能切换到其他vIEw,除非你关闭了modalvIEw. Modal VIEw对应的segue type就是modal segue。 *Modal:Transition to another scene for the purposes of completing a task.当user在d出的modalvIEw里 *** 作完后,就应该dismiss the modal vIEw scene然后切换回the originalvIEw. push
Push类型一般是需要头一个界面是个Navigation Controller的。
是在navigation VIEw Controller中下一级时使用的那种从右侧划入的方式 *Push:Create a chain of scenes where the user can move forward or back.该segue type是和navigation vIEwcontrollers一起使用。 popover(iPad only) popover 类型,就是采用浮动窗的形式把新页面展示出来 *Popover(iPad only):displays the scene in a pop-up “window” over top of the current vIEw. *Replace (iPad only): 替换当前scene, Replace the current scene with another. This is used in some specialized iPad vIEwcontrollers (e.g. split-vIEw controller). custom
就是自定义跳转方式啦。 *Custom:Used for programming a customTransition between scenes. 在Storyboard中使用自定义的segue类型 http://ryan.easymorse.com/?p=72 参考资料: 使用StoryBoard:用Segue传递数据
@L_403_1@ WWDC2011视频之Introduction to Storyboarding摘要
http://blog.sina.com.cn/s/blog_834f346f0100s4jr.html storyboard 遇到一个segue的问题
http://www.cocoachina.com/bbs/simple/?t92552.html iOS: storyboard (2)
http://www.voidcn.com/article/p-grrkiupi-hd.html
二、StoryBoard的视图切换
一 、简述
Storyboard是你可以用来定义用户界面的一种新的方式,像xib。
与xib不同的是它可以同时管理多个VIEwController,而且可以在Storyboard中配置VIEwController 之间的跳转关系。
二、Storyboard使用
如果你是创建新项目,Xcode模版可以提供一个配置好的Storyboard供你使用。对于其它的应用,使用Storyboard的过程如下:
1、配置应用程序Info.pList文件
添加UIMainStoryboardfile,值为storyboard的文件名。 删除原来的NSMainNibfile2、像以前创建xib文件一样创建一个storyboard文件
3、配置 storyboard中的vIEwController
三、Storyboard的创建
四、 Scene之间的数据传递
@H_909_301@ A---》B
想把数据
@property 一个Nsstring data
然后在AController中添加方法
- (voID)prepareForSegue:(UIStoryboardSegue *)segue sender:(ID)sender
{
}
之后,Bcontroller中的data属性,就接收到数据了。
五、VIEwController之间的跳转
3、如果目标VIEwController不存在,那就去创建它吧。
总结以上是内存溢出为你收集整理的Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom全部内容,希望文章能够帮你解决Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)