Disable contentInsetAdjustmentBehavior

This commit is contained in:
丁文超 2017-11-24 10:45:00 +08:00
parent a84ed179c0
commit c513607c19
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ class FSPagerViewCollectionView: UICollectionView {
if #available(iOS 10.0, *) {
self.isPrefetchingEnabled = false
}
if #available(iOS 11.0, *) {
self.contentInsetAdjustmentBehavior = .never
}
#if !os(tvOS)
self.scrollsToTop = false
self.isPagingEnabled = false