In Swift, I have created a custom cell with 3 labels and in which I have added a button or type UIButton. The button is displayed in each row of the table. When I click on the button I would like to save the indexPath of the row in which the button was pressed so I can replace the labels with different text. It is unclear to me how I could proceed. I would like to call the accessory button method (accessoryButtonTappedForRowWithIndexPath) if possible.
Thank you for any guidance.