首页 > 其他 > 详细

presentViewController显示方式的窗口,没有导航栏的解决方法

时间:2017-08-24 19:31:43      阅读:583      评论:0      收藏:0      [点我收藏+]

ViewController *Controller = [[ViewController alloc] init];  

UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:Controller];  

[self presentViewController:nav animated:YES completion:nil];  




//未登录,跳转到登录页面    TLDLoginViewController *loginVC = [[TLDLoginViewController alloc]init];    TLDNavigationController *nv = [[TLDNavigationController alloc] initWithRootViewController:loginVC];//将普通视图添加到NavigationController    [self presentViewController:nv animated:YES completion:^{        NSLog(@"模态视图");    }];//退出登录页面    [self dismissViewControllerAnimated:YES completion:nil];

本文出自 “ZhuoKing” 博客,请务必保留此出处http://9951038.blog.51cto.com/9941038/1959027

presentViewController显示方式的窗口,没有导航栏的解决方法

原文:http://9951038.blog.51cto.com/9941038/1959027

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!