DCRoundSwitch
DCRoundSwitch copied to clipboard
A 'modern' replica of UISwitch.
Hi, I'm having the same issue mentioned in http://www.scriptscoop.net/t/5baff8171039/uitableview-dcroundswitch-in-custom-cell-fires-on-table-reload.html. As of a solution I found that one of the answers works pretty well, which is in DCRoundSwitch.m file, locate method:...
[](https://reviewable.io/reviews/domesticcatsoftware/dcroundswitch/8)
My swicthes are small and it would be nice if the text could be resized.
A new feature has been created for altering the off tint color of the switch. It has mirrored functionality to onTintColor but is called using offTintColor.
Change to use simplified calculation of knobCenter and textSpaceWidth.
Removed dealloc Removed autorelease Fixed Bad Access by using UIColor\* rather than CGColorRef. The compiler sets the original UIColor to be released too early so converting it to a CGColorRef...
use the on|off text as the accessibilityValue for the switch
- onTextColor - offTextColor - onTextShadowColor - offTextShadowColor - offTintColor