Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Connecting cell to controller by responder chain properly
@implementation MyTableViewCell
- (IBAction)checkboxPressed:(UIButton *)checkbox {
// Send onwards up the responder chain
id target = [self targetForAction:@selector(cellCheckboxPressed:)
withSender:self];
[target performSelector:@selector(cellCheckboxPressed:)
withObject:self];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment