解决办法:
增加代码
if (@available(iOS 11.0, *)) {
self.collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
即可
解决办法:
增加代码
if (@available(iOS 11.0, *)) {
self.collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
即可
本文标题:iOS11 collectionview的contentOffs
本文链接:https://www.haomeiwen.com/subject/khzqgftx.html
网友评论