Skip to content

Instantly share code, notes, and snippets.

@steveriggins
Created September 21, 2012 05:25
Show Gist options
  • Save steveriggins/3759869 to your computer and use it in GitHub Desktop.
Save steveriggins/3759869 to your computer and use it in GitHub Desktop.
SEL methodSel = NSSelectorFromString(methodStr);
if ([self respondsToSelector:methodSel])
{
#pragma clang diagnostic warning push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self performSelector:methodSel];
#pragma clang diagnostic warning pop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment