处理方法
NSString *version = [UIDevice currentDevice].systemVersion;
if (version.doubleValue >= 11.0) {
self.mainTableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
网友评论