I created a dynamic prototype cell in storyboard
and this cell is containing a UILabel
and two UIButtons
.
Number of rows depends on my data which I am fetching from web service.
I Don't want to subclass this cell.
I am fetching controls reference inside the cell using this code [cell viewWithTag:0]
.
And for tap event I am using this code
[cell.button addTarget:self action:@selector(myMethod:) forControlEvents:UIControlEventTouchUpInside];
Problem is how to detect which row's button is tapped?