问题
I m working on a UICollectionView
class, and it will display the scroll bar when I scroll on the list, it's possible to hide scroll bar when scrolling?
回答1:
Objective C:
[collectionView setShowsHorizontalScrollIndicator:NO];
[collectionView setShowsVerticalScrollIndicator:NO];
Swift 3.0
colView.showsHorizontalScrollIndicator = false
colView.showsVerticalScrollIndicator = false
From storyboard:
回答2:
in Swift:
collectionView.showsHorizontalScrollIndicator = false
in Interface Builder:
来源:https://stackoverflow.com/questions/30836571/how-to-hide-scroll-bar-of-uicollectionview