页面跳转的方法总结
2014-10-16 16:35
239 查看
1、addsubview方法切换视图
self.view addSubview:(加载的新页面);
相应的 [self.view removeFromSuperview];移除添加的view
2、self.view insertSubview:(加载的新页面) atIndex:n;
对n的解释:页面都是层次叠加的,n表示加载到那一层上面
另外[self.view addSubView:xx.view] 其实就等于[self.view insertSubView:xx.view atIndex:[self.view.subViews count]];
3、presentModalViewController方法
photoNacController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
photoNacController.modalPresentationStyle = UIModalPresentationFullScreen;
self presentModalViewController:(加载的新页面) animated:
4、pushViewController 导航
[self.navigationController pushViewController:(加载的新页面) animated:YES];
对应的
[self.navigationController popViewControllerAnimated:YES];
http://www.iseven-it.com/?p=711
self.view addSubview:(加载的新页面);
相应的 [self.view removeFromSuperview];移除添加的view
2、self.view insertSubview:(加载的新页面) atIndex:n;
对n的解释:页面都是层次叠加的,n表示加载到那一层上面
另外[self.view addSubView:xx.view] 其实就等于[self.view insertSubView:xx.view atIndex:[self.view.subViews count]];
3、presentModalViewController方法
photoNacController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
photoNacController.modalPresentationStyle = UIModalPresentationFullScreen;
self presentModalViewController:(加载的新页面) animated:
4、pushViewController 导航
[self.navigationController pushViewController:(加载的新页面) animated:YES];
对应的
[self.navigationController popViewControllerAnimated:YES];
http://www.iseven-it.com/?p=711
相关文章推荐
- JSP页面跳转的方法总结
- 转:Asp.net中实现页面跳转的三种方法比较,现在总结如下:
- PHP 页面跳转到另一个页面的多种方法方法总结
- WEB开发中的页面跳转方法总结
- js跳转页面方法总结
- PHP 页面跳转到另一个页面的多种方法方法总结
- 页面跳转方法总结大全
- 页面跳转方法总结大全
- JSP页面跳转方法总结
- JSP页面跳转方法总结
- JSP页面跳转的方法总结
- js中页面刷新和页面跳转的方法总结
- HTML跳转页面方法总结
- js跳转页面方法总结
- 页面跳转方法总结
- Flex 页面跳转的几种方法总结
- 页面跳转方法总结大全
- js中页面刷新和页面跳转的方法总结
- WP8页面跳转传值方法总结
- js跳转页面方法总结