I have a UIButton in a custom UITableViewCell. This button triggers an event when clicked.
UIButton
UITableViewCell
[myButton addTarget:self action:@selector(b
UITableViewCell *cell = (UITableViewCell*)[[b superview] superview];
If you added the button on cell as subview then superview of button will be contentView and superview of contentView will UITableViewCell