页面间跳转和传值
2013-03-20 10:10
225 查看
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];效果图:
源码下载:下载
相关文章推荐
- 一起学Windows phone 7开发(二.页面间跳转与传值)
- 页面跳转及传值
- webform基础介绍及页面传值(session,cookie)、跳转页面
- Android基础】页面跳转与传值(Activity跳转与传值)
- android页面跳转与传值
- ASP.NET基础05_页面跳转与传值
- swift UI专项训练42 用Swift代码实现页面跳转与传值
- .NET中LinkButton控件进行数据绑定,页面跳转并传值
- JS控制的几种页面跳转方式和传值
- JS控制的几种页面跳转方式和传值
- iOS segue 页面跳转传值
- JAVASCRIPT 页面跳转 传值
- ios页面跳转传值
- 【Android基础】页面跳转与传值(Activity跳转与传值)
- 【Android基础】页面跳转与传值(Activity跳转与传值)
- Windows 10 UWP页面跳转and传值
- vue.js 页面跳转传值 localStorage本地存储
- 页面a跳到另一个页面b,js实现页面跳转传值
- Intent实现页面跳转和传值
- jsp 页面跳转传值