Skip to content

Instantly share code, notes, and snippets.

@casademora
Created July 21, 2012 16:45
Show Gist options
  • Save casademora/3156384 to your computer and use it in GitHub Desktop.
Save casademora/3156384 to your computer and use it in GitHub Desktop.
performSelector without ARC compiler warnings
- (id) performSelectorWithoutWarning:(SEL)selector;
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
return [self performSelector:selector];
#pragma clang diagnostic pop
}
@casademora
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment