标签:tab tom 方法 ios 11 ima view ott 问题 ted
解决方法
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
// 如果有大于控制器
if (self.childViewControllers.count >= 1) {
viewController.hidesBottomBarWhenPushed = YES;
}
[super pushViewController:viewController animated:animated];
// 修正push控制器tabbar上移问题
if (@available(iOS 11.0, *)){
// 修改tabBra的frame
CGRect frame = self.tabBarController.tabBar.frame;
frame.origin.y = [UIScreen mainScreen].bounds.size.height - frame.size.height;
self.tabBarController.tabBar.frame = frame;
}
}
标签:tab tom 方法 ios 11 ima view ott 问题 ted
原文地址:http://www.cnblogs.com/yang-shuai/p/7644530.html