I’m planning to build a customized view for the header line of a table view, with a button inside it. I think there will be no problem to do that, but I guess how I’ll be able later to know from wich header line the button was clicked ? I guess that didSelectRowAtIndexPath will not be usefull here, and I don’t see any didSelectHeaderAtSection method…
Can you tell me a good way to do that stuff ?
Thank you
I did that once and used the indexPath.row integer, passed that to the (id) sender of the button. That should work just fine.
Edit:
In:
you create a button.
Then you can do this:
You attach a method to the buttons
and inside there should be something like this:
That should do the job.