Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom UIScrollView scrollbar color?

How do I change the default color of the UIScrollView scrollbar in XCode?

like image 623
Sanjar Avatar asked Jun 12 '11 21:06

Sanjar


1 Answers

You don't say, but since you're using UIKit, I assume you'd be developing for iOS.

scrollView1.indicatorStyle = UIScrollViewIndicatorStyleWhite;

Replace UIScrollViewIndicatorStyleWhite to anything from this typedef.

like image 101
esqew Avatar answered Oct 05 '22 05:10

esqew