presentViewController显示方式的窗口,没有导航栏的解决方法
来源:互联网 发布:海尔软件下载 编辑:程序博客网 时间:2024/05/21 18:45
ViewController *Controller = [[ViewController alloc] init];[self presentViewController:Controller animated:YES completion:nil];
怎么看怎么觉得代码没啥问题,搜索了半天发现应该采用如下方式,对Controller进行转换
ViewController *Controller = [[ViewController alloc] init];UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:Controller];[self presentViewController:nav animated:YES completion:nil];
这样就OK啦
1 0
- presentViewController显示方式的窗口,没有导航栏的解决方法
- 另存为窗口没有“桌面”选项的解决方法
- Android Graphical Layout窗口没有的解决方法
- 另存为窗口没有“桌面”选项的解决方法
- iOS导航栏不能显示纯色的解决方法
- SDL没有窗口就没有声音的解决方法
- 关于使用模态窗口presentViewController跳转黑屏的解决
- ifconfig 中没有显示IP的解决方法
- MyEclipse启动没有信息显示的解决方法
- MyEclipse console没有显示的解决方法
- Android 百度地图导航没有声音的解决方法
- IOS-44-解决用模态方式presentViewController推出页面时导航栏消失问题
- presentViewController 的疑问
- presentViewController的问题
- ubuntu窗口没有标题栏的解决方法(gnome版本)
- discuz二级导航选择横排样式不显示的解决方法
- 利用多线程让没有窗口的程序显示进度条
- elispse在调试时没有显示变量的窗口
- 使用ALTER USER命令修改用户的密码、密码过期,锁定,解锁
- [CF 724E]Goods transportation
- xml--include用法--xml文件模块化
- servlet笔记
- Angular之$location
- presentViewController显示方式的窗口,没有导航栏的解决方法
- 文件系统基本概念汇总
- AndroidStudio使用技巧
- Java并发编程之九:实现内存可见性的两种方法比较:synchronized和Volatile
- SSH(Struts,Spring,Hibernate)和SSM(SpringMVC,Spring,MyBatis)的区别
- 【基础7】selenium操作canvas
- WTL使用双缓冲避免重绘闪烁
- RxBinding的使用,实现数据和View的绑定
- Java并发编程之十:多线程环境中安全使用集合API(含代码)