Skip to content

Instantly share code, notes, and snippets.

@nemesit
Created June 24, 2014 18:01
Show Gist options
  • Save nemesit/f414a0107e6f6d7ab8d6 to your computer and use it in GitHub Desktop.
Save nemesit/f414a0107e6f6d7ab8d6 to your computer and use it in GitHub Desktop.
calling the method implementation as an alternative to performSelector
if ([_target respondsToSelector:_targetAction]) {
if (_targetAction) {
void (*action)(id,SEL,id);
action = (void(*)(id,SEL,id))[_target methodForSelector:_targetAction];
action(_target,_targetAction,self);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment