Boris-Em/BEMCheckBox

Assigning Delegate

Closed this issue · 5 comments

If this checbox is a property of a UITableViewCell how do you recieve the delegate method of didTapOn? Perhaps i'm doing this wrong, but i've tried to assign the delegate within my custom tableviewcell and within my cellForRowAtIndexPath inside my tableViewController and still that delegate method does not fire when tapping on the checkbox.

Hi @emtjoshhart,
Setting the delegate inside cell should work the same way.
Could we take a look at your cellForRowAtIndexPath implementation?

Instead of a delegate method is there an easy way to attach an action to the checkmarkButton? (sorry two accounts)

I'm not sure exactly what you mean by "attach an action", butBEMCheckBox only supports delegate methods to get events.

Okay, you can close this then, I needed the checkbox to call the action within the UITableViewCell implementation. By attaching an action i meant creating an action IBOutlet that gets called on touchUpInside. I appreciate all of your hard work with creating such a valuable resource! Thanks!

You're welcome @hartjosh!