解决iOS 11状态栏沉浸失效

    //解决iOS 11状态栏沉浸失效的问题
    if (@available(iOS 11.0, *)) {
        _table.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    } else {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }

你可能感兴趣的:(iOS开发)