The UISwitch
tint color controls the border color. If you want to set the on color, you need to use onTintColor
.
Read here the documentation of what these tint colors represent for UISwitch
.
Also, you should not be setting appearance in applicationWillResignActive:
delegate method. This is called when the application resigns active state. You should set appearance in application:didLaunchWithOptions:
.