Last active
August 29, 2015 14:10
-
-
Save mikeabdullah/4d58f2ede41ffea0bb1f to your computer and use it in GitHub Desktop.
Connecting cell to controller by responder chain properly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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