iOS 解决 scrollView 顶部留白问题
2018-08-03 本文已影响46人
小屋新
if (@available(iOS 11.0, *)) {
_collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.automaticallyAdjustsScrollViewInsets = NO;
}