Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
来源:互联网 发布:数据分析需求文档 编辑:程序博客网 时间:2024/05/02 13:39
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之间的跳转
http://luckfox.iteye.com/blog/1826416
原來是要在IB中的segue的identifier寫下identifier,否則會錯誤
另外在stept3 的部分可以設定過場的畫面
- - (IBAction)GoViewButton01:(id)sender
- {
- [self performSegueWithIdentifier:@"ViewController01" sender:sender];
- }
- 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
- mybatis源码之BaseStatementHandler
- 生成像jar一样的arr文件并且导入
- cocos2d-x 遮罩层
- 数字颠倒
- Android 获取手机总内存和可用内存等信息
- Storyboard里面的几种Segue区别及视图的切换:push,modal,popover,replace和custom
- 负载均衡之基于L3/4负载
- erlang实现A星算法
- Mybatis源码之CallableStatementHandler
- 各种排序方法的比较
- JQ属性选取attr、prop、data的区别
- 接下来要做的事情
- 负载均衡之基于L7负载
- tcp http socket