ios ViewController 页面跳转
2014-11-13 16:25
501 查看
从一个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];
相关文章推荐
- iOS实现点击按钮,跳转到与mian.storyboard 中与ViewController 关联的页面
- ios ViewController 页面跳转
- iOS开发中ViewController的页面跳转和弹出模态
- iOS xib viewcontroller页面跳转
- ios ViewController 页面跳转
- ios pushViewController 页面不跳转问题解决
- ios ViewController 页面跳转
- iOS开发中ViewController的页面跳转和弹出模态
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios关于view-viewcontroller页面之间的跳转的方法
- iOS开发之ViewController页面跳转和弹出模态
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios ViewController 页面跳转
- ios 判断当前页面从哪个页面跳转过来的(上个界面是哪个ViewController)
- ios ViewController 页面跳转
- IOS——使用PresentViewController推送页面,各页面间跳转及遇到的问题
- ios ViewController 页面跳转