Created
March 2, 2013 05:33
-
-
Save commanda/5069840 to your computer and use it in GitHub Desktop.
How to select the target for invoking an IMP of a super class?
This file contains hidden or 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
-(IBAction)cancelPressed:(id)sender | |
{ | |
void (^onComplete)(void) = ^{ | |
IMP superCancelPressed = class_getMethodImplementation([MCDialogView class], @selector(cancelPressed:)); | |
superCancelPressed(<what goes here?>, @selector(cancelPressed:), nil); | |
//[super cancelPressed:sender]; | |
}; | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment