公告
财富商城
积分规则
提问
发文
2019-09-10 04:29发布
ら.Afraid
So, here I basically have this layout
but when I build successfully I am not able to see the title of the navigation controller.
What can I do?
This is what you want to emulate:
UITabBarController
UINavigationController
Running the app above, then tapping on Item 2 will present this navigation controller:
If you cannot make the UITabBarController the initial View Controller at launch, you can make it become root later on using this technique:
let newViewController = self.storyboard?.instantiateViewControllerWithIdentifier("id") as? UIViewController self.view.window?.rootViewController = newViewController
This will present the architecture above, albeit without animation (nor any way to navigate back). Perfect for onboarding or login screens.
Tested on Xcode 7+, iOS 9+
Make your TabBar Controller the initial view, And make sure to remove the navigation controller that's linked to it, Then it should work fine.
最多设置5个标签!
This is what you want to emulate:
UITabBarController
as is Initial View ControllerUINavigationController
or notUINavigationController
, it will behave like any root navigation controller, with its own view stack, back button, an so forth.Running the app above, then tapping on Item 2 will present this navigation controller:
If you cannot make the
UITabBarController
the initial View Controller at launch, you can make it become root later on using this technique:This will present the architecture above, albeit without animation (nor any way to navigate back). Perfect for onboarding or login screens.
Tested on Xcode 7+, iOS 9+
Make your TabBar Controller the initial view, And make sure to remove the navigation controller that's linked to it, Then it should work fine.