iOS Bug 之 iOS 9.3.x UITableView 上方空出一块

- (void)viewDidLoad {

    [super viewDidLoad];

    // Do any additional setup after loading the view, typically from a nib.

    self.view.backgroundColor = [UIColor whiteColor];

    self.navigationController.navigationBar.hidden = YES;

    self.automaticallyAdjustsScrollViewInsets = NO;

    if (@available(iOS 11.0, *)){

        [[UIScrollView appearance] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];

    }

}

posted on 2018-07-04 11:34  大木哥  阅读(100)  评论(0编辑  收藏  举报

导航