12

There is any way to change the color of the "UIActivityIndicatorView" of the UIRefreshControl??

I didn't find anything!

Thanks!!

UIRefreshControl

user1053839
  • 390
  • 1
  • 3
  • 10
  • I'm afraid I don't know... but take a look at some custom classes, maybe you'll find something of use in there that shows how it's done: http://www.cocoacontrols.com/search?utf8=%E2%9C%93&q=indicator – Luke Feb 02 '13 at 02:27

2 Answers2

27

You can do it by setting the Tint Color of the UIRefreshControl, something like this:

Objective C [refreshControl setTintColor:[UIColor blackColor]];

Swift refreshControl.tintColor = .black

This will also change the arrow that expands when you slide.

Borzh
  • 5,069
  • 2
  • 48
  • 64
subharb
  • 3,374
  • 8
  • 41
  • 72
7

As the previous answer is outdated, I thought that I would just modify it to Swift 4 and share the solution (credit goes to @subharb).

refreshControl.tintColor = UIColor.white

This line of code will change the color of the UIActivityIndicatorView to whatever color you want it to be :)

Rosalie W
  • 359
  • 4
  • 16