domesticcatsoftware / DCRoundSwitch

A 'modern' replica of UISwitch.
MIT License
765 stars 162 forks source link

kvo doesn't work for "on" property #28

Open mimai opened 11 years ago

mimai commented 11 years ago

change

changes to make kvo work:

[self willChangeValueForKey:@"on"];
on = newOn;
[self didChangeValueForKey:@"on"];