Skip to content

Instantly share code, notes, and snippets.

@Shilo
Forked from XueshiQiao/gist:5918651
Created August 6, 2016 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shilo/76f8428d010916b50a4461418cba33cb to your computer and use it in GitHub Desktop.
Save Shilo/76f8428d010916b50a4461418cba33cb 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment