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?
Objective C:
[collectionView setShowsHorizontalScrollIndicator:NO];
[collectionView setShowsVerticalScrollIndicator:NO];
Swift 3.0
colView.showsHorizontalScrollIndicator = false
colView.showsVerticalScrollIndicator = false
From storyboard:
in Swift:
collectionView.showsHorizontalScrollIndicator = false
in Interface Builder:
Option #1 (by code):
myCollectionView.showsVerticalScrollIndicator = false
myCollectionView.showsHorizontalScrollIndicator = false
Option #2 (from storyboard):
Go to Attributes inspector > Uncheck "Show Horizontal Indicator" and "Show Vertical Indicator"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With