Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Connecting cell to controller by responder chain
@implementation MyTableViewCell
- (IBAction)checkboxPressed:(UIButton *)checkbox event:(UIEvent *)event {
// Send onwards up the responder chain with the cell as sender
[UIApplication.sharedApplication sendAction:@selector(cellCheckboxPressed:)
@implementation MyTableViewController
- (void)cellCheckboxPressed:(MyTableViewCell *)cell {
// Look up task and work with it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment