鍍金池/ 問答/C  iOS/ 適配iPhone X Push過程中TabBar位置上移

適配iPhone X Push過程中TabBar位置上移

使用tabbarController,push一個新的controller的時候,tabbar會向上移動一段距離

回答
編輯回答
舊言

可以看看騰訊iPhone X適配的解決方案:http://www.aazzp.com/2017/11/...

2018年8月3日 07:15
編輯回答
喜歡你

同遇到,個人認(rèn)為應(yīng)該是模擬器bug。

2017年9月8日 06:41
編輯回答
陌如玉

繼承uinavigationcontroller重寫

  • (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {

    [super pushViewController:viewController animated:animated];

    //改tabBar的frame

    CGRect frame = self.tabBarController.tabBar.frame;
    frame.origin.y = [UIScreen mainScreen].bounds.size.height - frame.size.height;
    self.tabBarController.tabBar.frame = frame;

    }

參考:
http://www.jianshu.com/p/2aa2...

2018年1月6日 05:42
編輯回答
萌二代
    • 從哪弄的iPhonex
2017年2月28日 00:27