Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
来源:互联网 发布:java 图片尺寸 编辑:程序博客网 时间:2024/05/21 22:53
modal 模态转换
是在viewController中的标准切换的方式,包括淡出什么的,可以选切换动画。
push
Push类型一般是需要头一个界面是个Navigation Controller的。
是在navigation View Controller中下一级时使用的那种从右侧划入的方式
popover(iPad only)
*Replace (iPad only):
custom
就是自定义跳转方式啦。
http://www.cnblogs.com/mybkn/archive/2012/03/22/2411842.html
http://blog.sina.com.cn/s/blog_834f346f0100s4jr.html
http://www.cocoachina.com/bbs/simple/?t92552.html
http://blog.csdn.net/totogogo/article/details/7361191
一 、简述
Storyboard是你可以用来定义用户界面的一种新的方式,像xib。
与xib不同的是它可以同时管理多个ViewController,而且可以在Storyboard中配置ViewController 之间的跳转关系。
二、Storyboard使用
如果你是创建新项目,Xcode模版可以提供一个配置好的Storyboard供你使用。对于其它的应用,使用Storyboard的过程如下:
1、配置应用程序Info.plist文件
- 添加UIMainStoryboardFile ,值为storyboard的文件名。
- 删除原来的NSMainNibFile
2、像以前创建xib文件一样创建一个storyboard文件
3、配置 storyboard中的viewController
三、Storyboard的创建
四、 Scene之间的数据传递
A---》B
想把数据
@property 一个NSString data
然后在AController中添加方法
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ NSLog(@"The segue id is %@", segue.identifier ); UIViewController *destination = segue.destinationViewController; if ([destination respondsToSelector:@selector(setData:)]) { [destination setValue:@"这是要传递的数据" forKey:@"data"]; } }
之后,Bcontroller中的data属性,就接收到数据了。
五、ViewController之间的跳转
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom 2012
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- 新手上路
- Hadoop学习之配置Eclipse远程调试Hadoop
- Java中数组的类型
- 如何快速向Mysql插入大量数据?
- ZOJ 1151 Word Reversal反转单词 (string字符串处理)
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- String[]的直接父类就是Object而不是Object[]
- UiAutomator 中文输入实现
- glibc源代码的阅读
- 使用惰性控件ViewStub实现布局动态加载
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- Java:Java socket编程时读取输入流时挂起问题
- 用freeswitch配置一些有用的功能
- 计算器