My app has:
[[UIView appearance] setTintColor:[UIColor whiteColor]];
And here is what I have when on:
on
and off>
off>
Rather than using the appearance proxies you can also use:
[self.mySwitch setThumbTintColor:[UIColor blueColor]]; [self.mySwitch setOnTintColor:[UIColor redColor]];
ie. Use setOnTintColor for the background/border color.
setOnTintColor