Sanjar
Sanjar

Reputation: 87

Custom UIScrollView scrollbar color?

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

Upvotes: 5

Views: 4982

Answers (1)

esqew
esqew

Reputation: 44699

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.

Upvotes: 14

Related Questions