当我有 UITabBarController 时,如何将 UINavigationController 设置为我的初始屏幕?
我有一个 UITabBarController,它为每个选项卡加载一个 UINavigationController。第一个选项卡显然是我的初始屏幕,但是我不希望选项卡栏在此屏幕上可见。
也许我的做法是错误的。如何确保 UINavigationController 显示为我的初始屏幕?
I have a UITabBarController that loads a UINavigationController for each of its tab. The first tab is obviously my initial screen, however I don't want the tab-bar to be visible for this screen.
Maybe my approach is wrong. How can I make sure that a UINavigationController is shown as my initial screen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论您在应用程序委托中放入
[window addSubview:]
中的哪个视图,都将在启动时可见。如果您只需要UINavigationController
,请添加其view
属性。如果您的标签栏在启动时不可见,您打算如何使其可见?Whichever view you put in
[window addSubview:]
in your app delegate will be visible on launch. If you just want theUINavigationController
, add itsview
property. If your tab bar isn't visible on launch, how were you planning on making it visible?