How can I locate the indexpath of the UITableviewCell a certain button is in when I click that butto

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-05-17T00:26:43Z Indexed on 2010/05/17 0:30 UTC
Read the original article Hit count: 569

I've added a button as an accessory view to uitableviewcell, and I when I press it, I'd like to be able to access the index path of the table view cell it's currently inside of so I can delete/modify the contents of that cell. Should I subclass UIbutton and add make it have it's own index path property? If so, do I need to implement any specific button methods in that subclass of will they automatically be loaded? Any help would be greatly appreciated. Sorry if this is a noobie question.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uibutton