tableView使用MJRefresh视图下滑64,下拉UI显
2017-12-10 本文已影响18人
c608
if (@available(iOS 11.0, *)) {
}else{
//其中64是偏移高度,当是iPhone X的时候需要另外适配翠花刘海
_tableView.contentInset = UIEdgeInsetsMake(-64, 0, 0, 0);
}
或者在跟控制器中设置
self.automaticallyAdjustsScrollViewInsets = NO;