Skip to content
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

Closed
liaoweihai opened this issue Jan 31, 2018 · 5 comments
Closed

底部的TabBar 消失 #242

liaoweihai opened this issue Jan 31, 2018 · 5 comments
Labels

Comments

@liaoweihai
Copy link

Base Info for this issue

  1. Version:v1.16.0
  2. Language:Objective-C
  3. iOS System Version:iOS11 iOS8
  4. Prototype(是否是真机):NO
  5. Issue Type:Crash、Bug、Enhancement(希望能支持一个新需求)、Q-A

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

@liaoweihai
Copy link
Author

问题解决了。整个navigation 用storyboard创建就没事了。

@ChenYilong
Copy link
Owner

里面也有storyboard的demo链接

@ChenYilong
Copy link
Owner

文档里

@ChenYilong
Copy link
Owner

#241

@ChenYilong
Copy link
Owner

ChenYilong commented Jun 20, 2019

这里有方案:#170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants