I am a newbie.
I have a custom UITableViewCell with 3 items:
a UILabel
a UITextField
and a UIButton
My question is, how do I know from which cell the button was clicked or textField was edited ?
Is there a way to track them?
Thanks for any replies.
What I usually do is after configuring the custom cell, I save the NSIndexPath of the cell in the title of the button for the state UIControlStateApplication.
In your tableView: cellForRowAtIndexPath: method, when configuring the cell:
Then, in your button action:
I am not really happy with this way. If someone has a cleaner way to do it, I would love to hear about it.