在选项卡栏视图之前查看
我将 TabBar 视图与导航视图相结合。 结构如下: 代表->标签栏 -> (很多)导航视图 -> (每个都有很多)控制器视图。
我想在任何其他视图之前显示一个视图(配置)。我想要这个没有栏和导航控件的视图。 有可能吗?我怎样才能做到这一点?
感谢您的帮助
I have TabBar View combined with Navigation View.
Structure like this:
delegate -> TabBar -> (many) Navigation Views -> (many for each) Controller Views.
I want show one view (config) before any other view. I want this view without Bars and Navigation Controlls.
It is possible? How I can do this ?
Thanks for help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这很有可能。在您的 applicationDidFinishLaunching 方法中,只需将您的配置视图设置为根视图控制器,如下所示:
然后,稍后当您准备好显示选项卡栏时,执行:
更新:
您可以像这样访问应用程序委托:
[[UIApplication sharedApplication] delegate];
之后,您可以将其转换为应用程序委托以避免任何警告,然后调用加载选项卡栏的方法...
Yes, It's very possible. In your applicationDidFinishLaunching method, simply make your config view the root view controller like this:
and then, some later time when you are ready to show the tab bar, do:
UPDATE:
You can access the application delegate like this:
[[UIApplication sharedApplication] delegate];
After this, you can cast it to your app delegate to avoid any warnings, and then call the method that loads the tab bar...
据我所知,您有一个基于选项卡栏的应用程序,并且您想在应用程序的开头显示一个视图,您可以将该页面显示为 modalviewcontroller 并隐藏导航栏和状态栏。
As far as i can understand, you have a tabbar based application and you want to display a view in the start of your application, You can just display that page as modalviewcontroller and hide navigationbar and status bar.