[英]iOS Where did my Title, Cancel and Save buttons go?
I'm making some changes to my app, but as far as I can tell, they don't involve the NewActivityViewController. 我正在对我的应用程序进行一些更改,但据我所知,它们不涉及NewActivityViewController。 Now, the app launches, but my buttons and the title have disappeared from the Nav Bar.
现在,该应用程序启动,但是我的按钮和标题从导航栏中消失了。
Any suggestions? 有什么建议么? Thanks!
谢谢!
ScreenShot: 截图:
Those items are described on your view controller's navigationItem
property. 这些项目在视图控制器的
navigationItem
属性中描述。 They will only appear if your view controller is displayed within a navigation controller. 仅当视图控制器显示在导航控制器中时,它们才会出现。
In the screenshot you're showing, you are only displaying the view controller (child), you aren't displaying the navigation controller (parent). 在显示的屏幕快照中,您仅显示视图控制器(子级),而未显示导航控制器(父级)。
Although I can't explain the problem, I resolved it by deleting the NavController then embedding the ViewController in a new NavController. 尽管无法解释问题,但我通过删除NavController并将ViewController嵌入新的NavController中来解决了。 Nothing else was required.
没有其他要求。
Many thanks @Aaron! 非常感谢@Aaron!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.