I have a UIButton
in a custom UITableViewCell
. This button triggers an event when clicked.
[myButton addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
The method which is called when the button is clicked is :
- (void) buttonClicked:(id)sender
{
UIButton *b = (UIButton*)sender;
.....
}
My question is, how can I get an instance of the cell in which the button is placed?