ios专题iOS开发kafka

iPhone X设配问题总结一

2017-10-14  本文已影响35人  HeavenWong

一、 iPhone X跳转push到下一个界面的时候tabBar上移了

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    if (self.childViewControllers.count > 0) {
       viewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"v1_left_item"] style:UIBarButtonItemStyleDone target:self action:@selector(back)];
        viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:YES];
    CGRect frame = self.tabBarController.tabBar.frame;
    frame.origin.y = [UIScreen mainScreen].bounds.size.height - frame.size.height;
    self.tabBarController.tabBar.frame = frame;
}

二、app在iPhoneX中不能全屏显示问题

启动图 全屏显示效果
上一篇 下一篇

猜你喜欢

热点阅读