tags:

views:

28

answers:

1

Hi!I have custom cell which contains number of rows in it.i want to write it's Action(click event) so how should i identify which buttons clicked and how can i write it's click event for it.Please give me some guidelines for that.i have not implemented yet.

+2  A: 

Use the tag property of the button.

When you make the button, say:

button.tag = indexPath.row.

Then, on the action, you can pull that tag, which will be unique, and act accordingly.

DexterW