214,使用storyboard实现页面跳转
2016-01-16 12:29
225 查看
Storyboard上每一根用来界面跳转的线,都是一个UIStoryboardSegue对象(简称Segue)
每一个Segue对象,都有3个属性
唯一标识
@property (nonatomic, readonly)
NSString *identifier;
来源控制器
@property (nonatomic,
readonly) id sourceViewController;
目标控制器
@property (nonatomic,
readonly) id destinationViewController;
在恰当的时刻,使用perform方法执行对应的Segue
[self performSegueWithIdentifier:@"login2contacts" sender:nil];
// Segue必须由来源控制器来执行,也就是说,这个perform方法必须由来源控制器来调用
每一个Segue对象,都有3个属性
唯一标识
@property (nonatomic, readonly)
NSString *identifier;
来源控制器
@property (nonatomic,
readonly) id sourceViewController;
目标控制器
@property (nonatomic,
readonly) id destinationViewController;
在恰当的时刻,使用perform方法执行对应的Segue
[self performSegueWithIdentifier:@"login2contacts" sender:nil];
// Segue必须由来源控制器来执行,也就是说,这个perform方法必须由来源控制器来调用
相关文章推荐
- Xcode 7安装KSImageNamed失败解决方法
- hdu2500做一个正气的杭电人
- startup_stm32f10x_xx.s 启动代码文件选择
- Android中的Parcelable序列化对象
- 自定义类的前缀
- 树莓派安装mysql-srver报错 404 not found!
- maven-相关配置
- jdbc连接数据库和jdbc的核心api
- error LNK2019: unresolved externalsymbol _RtlStringVPrintfWorkerA@20 referenced in function _RtlStri
- SpringMVC返回文件流
- java中动态代理实现机制
- 菜单展开缩放联动
- MySQL主从复制--MySQL5.6基于GTID及多线程复制
- poj DNA Sorting
- 谈铁科院半年工作之感
- JVM学习笔记(六)--- 垃圾回收面临的问题
- 关于Qt信号/槽的参数类型
- 【转】图解HTTPS
- [Leetcode]10. Regular Expression Matching @python
- Codeforces Round #339 (Div. 2)D. Skills