跳转
2016-03-12 21:54
411 查看
code
按Button进行模态跳转
// 在当前m中引入目标页面h文件- (void) click: (UIButton *) button{ // 模态跳转 // 1、创建目标页面的对象 SecondViewController *secVC = [[SecondViewController alloc] init]; // 2、设置跳转的动画样式 secVC.modalTransitionStyle = UIModalTransitionStylePartialCurl; // 3、向目标页面进行跳转 [self presentViewController:secVC animated:YES completion:nil]; [secVC release]; }
按Button跳转回之前的页面
- (void) click:(UIButton *) button{ [self dismissViewControllerAnimated:YES completion:nil]; }
相关文章推荐
- 【CS229 lecture20】策略搜索
- leetcode--Product of Array Except Self
- 2015Android 开发新技术
- 大小写转化
- python中的open的使用
- mycat 集群实现过程
- iOS 多线程 NSthread的简单使用——iOS 编码复习(六)(多线程4)
- HDU 5640 King's Cake
- Socket编程
- a标签的四个css伪类(link、visited、hover、active)样式理解
- HDU 1253 胜利大逃亡(空间BFS)
- Python的urlopen的使用
- POJ1155 TELE(树形DP)
- JSP内置对象详解
- 求多个数的最小公倍数(以3个数为例)
- 近期编程总结(i think -1)
- Ruby边学边记
- HDU 5640 King's Cake [模拟]
- JavaScript的面向对象
- JSP指令元素