Fix a prefetching issue

This commit is contained in:
WenchaoD 2017-04-18 16:14:56 +08:00
parent 1e1310f14d
commit fa7b98e970
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ class FSPagerViewCollectionView: UICollectionView {
self.decelerationRate = UIScrollViewDecelerationRateFast
self.showsVerticalScrollIndicator = false
self.showsHorizontalScrollIndicator = false
if #available(iOS 10.0, *) {
self.isPrefetchingEnabled = false
}
#if !os(tvOS)
self.scrollsToTop = false
self.isPagingEnabled = false