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?
Asked
Active
Viewed 4.2k times
49

Tejas Ardeshna
- 4,343
- 2
- 20
- 39

TIANLAOBA
- 511
- 1
- 4
- 5
-
thanks, i found solution myself, just showsHorizontalScrollIndicator = false – TIANLAOBA Jun 15 '15 at 02:27
3 Answers
121
Objective C:
[collectionView setShowsHorizontalScrollIndicator:NO];
[collectionView setShowsVerticalScrollIndicator:NO];
Swift 3.0
colView.showsHorizontalScrollIndicator = false
colView.showsVerticalScrollIndicator = false
From storyboard:

Tejas Ardeshna
- 4,343
- 2
- 20
- 39
3
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"

iosMentalist
- 3,066
- 1
- 30
- 40

Osama Remlawi
- 2,356
- 20
- 21