ViewController的页面跳转
2015-11-21 11:26
239 查看
ViewController的页面跳转
创建要跳转的密码ViewController
PasswordViewController *p =[[PasswordViewController alloc]init];
定义跳转风格
p.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
当前页面跳转到PasswordViewController页面
[self presentViewController:p animated:YES completion:nil];
移除当前页面(返回)
[self dismissViewControllerAnimated:YES completion:nil];
创建要跳转的密码ViewController
PasswordViewController *p =[[PasswordViewController alloc]init];
定义跳转风格
p.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
当前页面跳转到PasswordViewController页面
[self presentViewController:p animated:YES completion:nil];
移除当前页面(返回)
[self dismissViewControllerAnimated:YES completion:nil];
相关文章推荐
- 利用touches方法拖动视图移动
- webrtc ICE rfc5245笔记
- sublime 设置缩进
- 一天当中最好的洗头时间
- 半平面求交——点在凸包外
- Pillow依赖库安装
- introduction to computer vision
- 自动生成项目的Makefile文件
- 轻松学习C#的预定义数据类型
- FTGL在OpenGL下显示中文
- 解析html 生成word文档
- ngxin proxy_set_header Host X-Forwarded-For
- 图片数组形成动画(UIImageView)
- Zookeeper 注册中心解析
- Unreal Engine 4 蓝图脚本学习 添加输入映射----实现冲刺和望眼镜效果 (3)
- RF Test and Measurement-1
- 10 种机器学习算法的要点(附 Python 和 R 代码)
- 手势
- 单片机学习之点亮LED小灯
- 不用算术运算符实现两个数的加法