setting target for disclosure button on subclassed UITableViewCell
- by Toby Wilson
I've created a subclass of UITableViewCell to create some custom appearance and UI functionality ('swipe to reveal delete button').
Some of the cells are disclosure/detail disclosure type, and have a UIButtonTypeDetailDisclosure etc added manually. I cannot use the table view controllers' UITableViewCellAccessory for row at index path method.
The question is, how do I set the target of these manually added buttons so that they correctly send the didSelectRowAtIndexPath to their table view controller?