Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to move the UIScrollView indicator from the right side to the left?

Tags:

I realize I can rotate the cells and move the indicator by displaying the scroll view "upside down" but that requires a lot of other rotations, and manipulating of information to make the Table scroll properly.

Thanks for the time

like image 713
Nathan Avatar asked Jun 15 '12 15:06

Nathan


People also ask

How do I turn off horizontal scrolling in Swift?

width <= width of the scrollview, so if you don't want to do any calculation, safely set the contentsize. width = 0; that will eliminate the scroll for sure.


1 Answers

Actually, it is possible by changing the scrollIndicatorInsets property to restrict the indicator to a small area on the left side:

tableView.scrollIndicatorInsets = UIEdgeInsetsMake(0,0,0,tableView.bounds.size.width-10);
like image 172
Jeremy Jay Avatar answered Sep 21 '22 13:09

Jeremy Jay