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.