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

iOS14真机tabbar消失 #538

Closed
CaiChenghan opened this issue Oct 20, 2020 · 1 comment
Closed

iOS14真机tabbar消失 #538

CaiChenghan opened this issue Oct 20, 2020 · 1 comment
Assignees
Labels

Comments

@CaiChenghan
Copy link

iOS14真机上运行,tabbar会消失....

@erickyim
Copy link

erickyim commented Oct 20, 2020

Seems like there is a confirmed bug on Xcode12 + iOS14.

iOS14 missing TabBar on popping multiple ViewControllers

https://developer.apple.com/forums/thread/660750

// fix: sometimes push and then popback no tabbar error

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
  if (self.viewControllers.count == 1) {
    viewController.hidesBottomBarWhenPushed = YES;
  } else {
    viewController.hidesBottomBarWhenPushed = NO;
  }
  [super pushViewController:viewController animated:animated];
}

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

3 participants