解決方法ide
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated方法
{im
// 若是有大於控制器tab
if (self.childViewControllers.count >= 1) {animate
viewController.hidesBottomBarWhenPushed = YES;view
}vi
[super pushViewController:viewController animated:animated];co
// 修正push控制器tabbar上移問題push
if (@available(iOS 11.0, *)){void
// 修改tabBra的frame
CGRect frame = self.tabBarController.tabBar.frame;
frame.origin.y = [UIScreen mainScreen].bounds.size.height - frame.size.height;
self.tabBarController.tabBar.frame = frame;
}
}