What is a good way for a custom accessory view in a UITableViewCell to message the table view contro

Posted by Alex Gosselin on Stack Overflow See other posts from Stack Overflow or by Alex Gosselin
Published on 2010-03-16T23:26:16Z Indexed on 2010/03/16 23:31 UTC
Read the original article Hit count: 124

Hi Everyone, I am working on adding a custom accessory view, (a button) to a UITableViewCell, and I need it to tell the table view when it is touched, but I can't figure out how to communicate to the table view what button was pressed. Ideally I'd like to somehow call a function like this:

[controller tableView:view didSelectCustomButtonAtIndexPath:indexPath usingCell:self];

when my custom view button is pressed.

Sorry if this is a bit vague, I'm not really sure how to explain this well. I am basically looking for how to mimic the implementation for tableView:didSelectRowAtIndexPath: without having to subclass UITableViewCell.

Thanks for any help.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableviewcontroller