My app has:
[[UIView appearance] setTintColor:[UIColor whiteColor]];
And here is what I have when on
:
and off
:
I need to make UISwitch
border visible like in Settings.app:
Your [[UIView appearance] setTintColor:[UIColor whiteColor]];
is interfering with the tint color of your switch. The command to set the tint color is self.mySwitch.tintColor = [UIColor grayColor];
which sets the color used to tint the outline of the switch when it is turned off.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With