i need a to change the Thumb image of UISwitch in ios 7, i googled a lot and find nothing..any suggestions or code will be appreciated,below is my required functionality.
i need to change Default UISwitch Thumb image to my Image.
Thanks in Advance.
You can do its by a tricky method.
[switchControl setThumbTintColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"Thumb.png"]]];
The Thumb.png should be in correct size. According to me its around 50X50 for retina screen. Note that you can't change the size of switch. That is it can't be bigger that its actual size.
If you want a control that can change its size, you need to create your own control
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