IOS 页面跳转
2015-08-01 11:09
417 查看
[code]@property (strong, nonatomic) LoginViewController *loginViewController; UIStoryboard *story=[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]]; self.loginViewController=[story instantiateViewControllerWithIdentifier:@"loginFirstPage"]; [self.navigationController pushViewController:self.loginViewController animated:YES];
[code]//点击文章列表跳转到文章详情页 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { NSIndexPath *indexPath = [self.tableView indexPathForCell:sender]; UIViewController *destination = [segue destinationViewController]; if ([destination respondsToSelector:@selector(setData:)]) { [destination setValue:[self.infos[indexPath.row] uid] forKey:@"data"]; // [destination setValue:[self.infos[indexPath.row] title] forKey:@"titles"]; // [destination setValue:[self.infos[indexPath.row] summary] forKey:@"summaries"]; }
相关文章推荐
- 简单的跑马灯效果
- iOS自定义cell导致数据加载混乱
- IOS navigation 返回按钮 不显示文字
- 斯坦福大学iOS8公开课笔记03—自动引用计数(ARC)、static、属性观察器、惰性实例化
- iOS开发之遍历Model类的属性并完善使用Runtime给Model类赋值
- ios协议里的属性
- IOS 实现多种分类 添加删除排序功能(LXReorderableCollectionViewFlowLayout)
- 双系统IOS\windows7 换成Windows10后果
- iOS 宏
- 如何用代码开启“个人热点”功能?如何用代码把iOS设备设置成一个无线路由?
- iOS设计模式 - 装饰
- ios 当键盘出现遮挡视图 视图上移Bug
- iOS
- iOS开发 - Quartz2D绘制小黄人
- iOS开发 - Quartz2D绘图
- IOS中延时执行的几种方式的比较和汇总
- ios开发之给Xcode安装颜色主题及自动注释插件
- Foundation框架提供的一些基本对象的用法之数字对象
- 【转】iOS延迟加载
- 【iOS】利用Runtime特性做监控