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

DCRoundSwitch In Custom Cell Fires On Table Reload #41

Open
ghost opened this issue Dec 10, 2015 · 0 comments
Open

DCRoundSwitch In Custom Cell Fires On Table Reload #41

ghost opened this issue Dec 10, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 10, 2015

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:

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

Deleting below lines;
[[self allTargets] makeObjectsPerformSelector:@selector(retain)];
[[self allTargets] makeObjectsPerformSelector:@selector(release)];

Would be great if the author can update the source. Of note, I'm using this via cocoa pods.

Thank you very much for providing such a cool custom switch!

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

0 participants