KLSwitch
KLSwitch copied to clipboard
An iOS 7 UISwitch clone that works on iOS 5+
I use it for a custom switch, but I can not setTurnOnImage and setTurnOffImage, so I add setTurnOnImage and setTurnOffImage methods that I can set the image when switch is...
- [ ] if tintColor is not default and value is off, border is rendered with tintColor. - [ ] if thumbTintColor is set, thumb color is changed.
Apple's UISwitch doesn't send UI events when calling `setOn:animated` programmatically. KLSwitch should mimick the same behavior. From the [docs](https://developer.apple.com/library/ios/documentation/uikit/reference/UISwitch_Class/Reference/Reference.html#//apple_ref/occ/instm/UISwitch/setOn:animated): ``` Setting the switch to either position does not result in...
The current values for shadow radius and opacity don't match iOS very well and there is no current way to change them.
Related issue: https://github.com/youknowone/UI7Kit/issues/66 I tested: 1. Create KLSwitch with Interfacebuilder + Storyboard 2. Call setOn: in viewDidLoad
In iOS7 UISwitch, Touch down triggers animation. In KLSwitch, Touch down doesn't trigger animaiton. (Triggered after setOn:)