domesticcatsoftware / DCRoundSwitch

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

DCRoundSwitch In Custom Cell Fires On Table Reload #41

Open ghost opened 8 years ago

ghost commented 8 years ago

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:

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!