Skip to content

Instantly share code, notes, and snippets.

@commanda
Created March 2, 2013 05:33
Show Gist options
  • Save commanda/5069840 to your computer and use it in GitHub Desktop.
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?
-(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