ios ViewController 页面跳转
来源:互联网 发布:php网站如何发布 编辑:程序博客网 时间:2024/06/01 08:40
从一个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页面
- hdu4932 小贪心
- OHS简单安装与系统配置
- Elasticsearch索引重建(Rebuild)
- linux与arm的交叉编译的过程(小编用的目标板是arm tiny6410 )
- ny 352 数乌龟
- ios ViewController 页面跳转
- Android项目_新闻
- 杭电1026 Ignatius and the Princess I(BFS+路径记录)
- 什么是射影几何?
- 杭电 2189(母函数 素数 打表)
- xhEditor struts2实现图片上传
- Cisco AnyConnect VPN 在win8下不能正常连接解决方案
- “22221111”题目详解
- Yii CMenu用post方式来删除记录