页面间跳转和传值
来源:互联网 发布:java求二叉树的节点数 编辑:程序博客网 时间:2024/06/05 01:06
1.先修改appdelegate
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. FirstViewController *rootView=[[[FirstViewController alloc]init]autorelease]; self.navController=[[[UINavigationController alloc]init]autorelease]; [self.navController pushViewController:rootView animated:YES]; [self.window addSubview:self.navController.view]; [self.window makeKeyAndVisible];
然后传值和跳转:
SecondViewController *SecondView= [[[SecondViewController alloc] init]autorelease]; SecondView.str=_tf01.text; [self.navigationController pushViewController:SecondView animated:YES];
返回
[self.navigationController popViewControllerAnimated:YES];效果图:
源码下载:下载
- 页面间跳转和传值
- 使用Storyboard跳转和页面间的传值
- html 页面之间跳转和传值
- Xcode6 StoryBoard页面跳转和传值
- html 页面之间跳转和传值
- Xcode6 StoryBoard页面跳转和传值
- UI页面跳转和传值
- Intent实现页面跳转和传值
- Intent实现页面跳转和传值
- 理清asp.net页面跳转和页面传值问题
- 页面跳转传值
- 在silverlight中的页面跳转和传值
- Android开发笔记--Activity 页面跳转和传值
- ASP.NET页面跳转和传值问题,更改数据库~
- 【android开发】页面之间的跳转和传值
- html 页面之间跳转和传值
- 【iOS】Segue的页面跳转和传值
- Android Intent实现页面跳转和传值
- Hibernate4从入门到精通五——————ID生成策略
- sqlHelper的编写
- 创建视图的sql、从视图中查询数据、视图的好处
- 在Oracle中表空间有足够free space的情况下出现ORA-1652
- Linux进程状态
- 页面间跳转和传值
- 获取u盘挂载对应路径
- hdu 3488(uva 1349)(KM)
- 文章统计谈刷新
- java反射机制——解析(2)
- 【技术分享】开Oracle调优鹰眼,深入理解AWR性能报告
- URI和URL的区别
- Linux下c开发 之 线程通信(转)
- 利用模板编译期计算阶乘