Is there a way to hide the scroll indicators in a UIScrollView? Is there a way to hide the scroll indicators in a UIScrollView? ios ios

Is there a way to hide the scroll indicators in a UIScrollView?


Set the showsHorizontalScrollIndicator and showsVerticalScrollIndicator properties of the UIScrollView to NO.

[tableView setShowsHorizontalScrollIndicator:NO];[tableView setShowsVerticalScrollIndicator:NO];

Documentation - UIScrollView


//For UITableView - Objective-C

tbl.showsHorizontalScrollIndicator = NO;tbl.showsVerticalScrollIndicator = NO;

//For UITableView - SWIFT 3.0

tbl.showsHorizontalScrollIndicator = falsetbl.showsVerticalScrollIndicator = false

//For UIScrollView - Objective-C

scrl.showsHorizontalScrollIndicator = NO;scrl.showsVerticalScrollIndicator = NO;

//For UIScrollView - SWIFT

scrl.showsHorizontalScrollIndicator = falsescrl.showsVerticalScrollIndicator = false

Change from XIB or storyboard

enter image description here


For those looking to do this in Swift.

self.tableView.showsHorizontalScrollIndicator = falseself.tableView.showsVerticalScrollIndicator = false