Skip to content

Instantly share code, notes, and snippets.

@XueshiQiao
Last active December 12, 2016 10:01
Show Gist options
  • Save XueshiQiao/5918651 to your computer and use it in GitHub Desktop.
Save XueshiQiao/5918651 to your computer and use it in GitHub Desktop.
Disable warning "PerformSelector may cause a leak because its selector is unknown"
//disable warning:"PerformSelector may cause a leak because its selector is unknown"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self.delegate performSelector:self.selector];
#pragma clang diagnostic pop
@XueshiQiao
Copy link
Author

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