I have a UIButton added to a UITableViewCell
In order to reduce code redundancy, I’d like to touch event of UIButton to fall through the cell – so it ends up in:
- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
Can you tell me how?
That’s a bad idea. Instead, you should call the same function from
didSelectRowAtIndexPath:& the button’s action method & place your common code in that function. Something like-HTH,
Akshay