解决办法
if (@available(iOS 11.0, *)) {
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
参考
https://www.jianshu.com/p/afeddc6b352e
一款轻量级的自动布局框架
https://github.com/xjh093/JHFrameLayout
网友评论