setting target for disclosure button on subclassed UITableViewCell

Posted by Toby Wilson on Stack Overflow See other posts from Stack Overflow or by Toby Wilson
Published on 2010-06-18T10:50:17Z Indexed on 2010/06/18 10:53 UTC
Read the original article Hit count: 342

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c