How can keep track of the index path of a button in a tableview cell?
        Posted  
        
            by Jake
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jake
        
        
        
        Published on 2010-05-19T08:33:29Z
        Indexed on 
            2010/05/19
            8:40 UTC
        
        
        Read the original article
        Hit count: 237
        
I have a table view where each cell has a button accessory view. The table is managed by a fatchedresults controller and is frequently reordered. I want to be able to press a button and be able to obtain the index path of the pressed button's tableviewcell. I've been trying to get this working for days by storing the row of the button in it's tag, but when the table get's reordered the row becomes incorrect and I keep failing at reordering the tags correctly when a change is made. Any new ideas on how to keep track of the button's cell's index path? Thanks so much for any help.
© Stack Overflow or respective owner