ios ViewController 页面跳转
来源:互联网 发布:肝功能包括乙肝吗 知乎 编辑:程序博客网 时间:2024/06/06 00:50
从一个Controller跳转到另一个Controller时,一般有以下2种:
1、利用UINavigationController,调用pushViewController,进行跳转;这种采用压栈和出栈的方式,进行Controller的管理。调用popViewControllerAnimated方法可以返回。
PickImageViewController *ickImageViewController = [[PickImageViewController alloc] init];
[self.navigationController pushViewController: ickImageViewController animated:true];
[ickImageViewController release];
2、利用UIViewController自身的presentModalViewController,进行跳转;调用dismissModalViewControllerAnimated方法可以返回。
PickImageViewController *ickImageViewController = [[PickImageViewController alloc] init];
[self presentModalViewController:ickImageViewController animated:YES];
//返回
[self dismissModalViewControllerAnimated:YES];
1、利用UINavigationController,调用pushViewController,进行跳转;这种采用压栈和出栈的方式,进行Controller的管理。调用popViewControllerAnimated方法可以返回。
PickImageViewController *ickImageViewController = [[PickImageViewController alloc] init];
[self.navigationController pushViewController: ickImageViewController animated:true];
[ickImageViewController release];
2、利用UIViewController自身的presentModalViewController,进行跳转;调用dismissModalViewControllerAnimated方法可以返回。
PickImageViewController *ickImageViewController = [[PickImageViewController alloc] init];
[self presentModalViewController:ickImageViewController animated:YES];
//返回
[self dismissModalViewControllerAnimated:YES];
0 0
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- iOS xib viewcontroller页面跳转
- ViewController的页面跳转
- iOS开发之ViewController页面跳转和弹出模态
- iOS xib跳转到storyboard的ViewController页面
- 在linux下设置共享库路径
- Node.js使用Sequelize ORM框架
- 微处理器之Trace Cache浅析
- 计算工资
- 树状数组应用:区间去重求和 hdoj 3333
- ios ViewController 页面跳转
- 从零开始学习OpenWrt完美教程(中文站镜像)
- vector容器建图
- 好久没有写博客了 随便搞上一篇
- hdu 题目分类 比较详细
- NSURLMutableRequest、NSURLResponse、NSURLConnection
- C++多态性的理解和举例
- accuracy、precision、recall
- 互联网DBA需要干的一些事情