Created
June 24, 2014 18:01
-
-
Save nemesit/f414a0107e6f6d7ab8d6 to your computer and use it in GitHub Desktop.
calling the method implementation as an alternative to performSelector
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
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