IOS11 tableview 适配

// tableView 偏移20/64适配

if(@available(iOS11.0, *)) {

self.tableView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;//UIScrollView也适用

}else{

self.automaticallyAdjustsScrollViewInsets=NO;

}

你可能感兴趣的:(IOS11 tableview 适配)