Modal跳转用法
来源:互联网 发布:进阿里巴巴程序员条件 编辑:程序博客网 时间:2024/05/17 05:30
一般在使用Modal视图跳转的时候,都包含一个导航控制器
- (IBAction)jump { // 展示MJTwoViewController PANTwoViewController *two = [[PANTwoViewController alloc] init]; UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:two]; [self presentViewController:nav animated:YES completion:^{ NSLog(@"展示PANTwoViewController完毕......."); }];}
PANTwoViewController.m
- (void)viewDidLoad{ [super viewDidLoad]; self.title = @"第2个控制器";// self.navigationItem.title self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"取消" style:UIBarButtonItemStyleDone target:self action:@selector(cancel)];}
- (IBAction)cancel {// NSLog(@"%@", self.view.window.rootViewController);// NSLog(@"%@", self.view.window.subviews); [self dismissViewControllerAnimated:YES completion:^{ NSLog(@"关闭PANTwoViewController...."); }];//与上面等价// [self.navigationController dismissViewControllerAnimated:YES completion:^{// NSLog(@"关闭PANTwoViewController....");// }];}
0 0
- Modal跳转用法
- Modal模式跳转相关
- modal push 跳转返回
- iOS中modal跳转总结
- modal模态框事件用法
- iOS导航栏跳转和modal跳转
- 再说Modal Dialog上的URL跳转
- iOS开发Modal页面跳转动画效果
- Modal
- Modal
- modal
- modal
- modal
- IOS - 页面跳转及返回 (push-pop,modal-dismiss)
- 关于iOS modal界面跳转黑屏的原因及解决方案
- 跳转控制器用 push 还是 modal,怎么选择?
- bootstrap中使用actionFormatter跳转modal并传递数据的
- Intent 常见跳转用法
- 浅析C++中单链表的增、删、改、减
- Linux下任务队列类
- Java回炉之多线程(一)
- 数组和指针一道练习题(2015.12.9)
- 读书笔记之《苏菲的世界》
- Modal跳转用法
- maven学习七:maven基础总结
- 怎么在一个网页头部加小图片
- leetcode -- Flatten Binary Tree to Linked List -- 重点难点
- linux下安装oracle遇到的错误总结
- c语言学习总结
- springjdbc中applicationContext.xml和web.xml配置信息
- solr5.3.1搭建
- Linux文件操作命令