-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
底部的TabBar 消失 #242
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Base Info for this issue
1. How to repeat the problem.
用storyboard 创建的ViewController 底部的TabBar 消失 但是我不用storyboard 直接new的就没事一旦点击了切换到storyboard 创建的ViewController就消失了,是暂时不支持这样添加的方式吗?
2. Please help me in this way.
3. Here is a Demo.
@implementation RDTabBarController
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[self settupViewControllers];
}
(void)settupViewControllers
{
RDEquipmentViewController *eq = [RDEquipmentViewController shareStoryboardViewController];
NYNavigationController *eqNav = [[NYNavigationController alloc] initWithRootViewController:eq];
RDDataViewController *dt = [RDDataViewController shareStoryboardViewController];
NYNavigationController *dtNav = [[NYNavigationController alloc] initWithRootViewController:dt];
RDMyViewController *my = [RDMyViewController shareStoryboardViewController];
NYNavigationController *myNav = [[NYNavigationController alloc] initWithRootViewController:my];
//设置TabBarItem样式
[self setUpTabBarItemsAttributesForController];
[self setViewControllers:@[eqNav, dtNav , myNav]];
}
4. Here is my Debug log
The text was updated successfully, but these errors were encountered: