UIViewController 中的 Uitabbarcontroller 不在 appdelegate 中
如何将 UITabbarcontroller
集成到 UIViewController
类中而不是应用程序委托中?我本来应该创建一个登录视图,然后出现在 UIViewController
类中创建的 UITabBarController
?谁能建议需要做什么?谢谢
How do I integrate a UITabbarcontroller
in a UIViewController
class not in the app delegate? I was suppose to make a login view and after it the UITabBarController
appears which was created in a UIViewController
class? Can anyone suggest what needs to be done? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您仍然可以将
UITabBarController
放在 App Delegate 中,登录完成后,只需告诉应用程序委托,然后切换它们:You can still put the
UITabBarController
in the App Delegate, when the login is done, just tell the app delegate, and switch the them:如果您的应用程序是基于导航的应用程序,则创建 TabBarController(以及要添加多少个 ViewController)并将其添加到导航控制器上,就像这里
是实用程序类中的 configureMessagesTabBArController 方法
if your Application is Navigation Based App, then Create TabBarController(with ViewControllers how many you want to add) and add it on Navigation Controller, like this
here is configureMessagesTabBArController Method from Utility class