How to change the UISwitch default color(blue)

Prasad picture Prasad · Dec 22, 2011 · Viewed 44.9k times · Source

How to change the default color(blue) of a UISwitch?

Answer

NicholasTGD picture NicholasTGD · Dec 22, 2011

I think what you are looking for is something like this

UISwitch *testSwitch; //just something I made up
[testSwitch setOnTintColor:[UIColor greenColor]];