Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mimai opened this issue Oct 17, 2012 · 0 comments
Open

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

mimai opened this issue Oct 17, 2012 · 0 comments

Comments

@mimai
Copy link

mimai commented Oct 17, 2012

change

  • (void)setOn:(BOOL)newOn animated:(BOOL)animated ignoreControlEvents:(BOOL)ignoreControlEvents

changes to make kvo work:

[self willChangeValueForKey:@"on"];
on = newOn;
[self didChangeValueForKey:@"on"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant