Skip to content

Instantly share code, notes, and snippets.

@AquaGeek
Created March 26, 2012 18:36
Show Gist options
  • Select an option

  • Save AquaGeek/2208561 to your computer and use it in GitHub Desktop.

Select an option

Save AquaGeek/2208561 to your computer and use it in GitHub Desktop.
Interesting pragma options
// From zoul - http://stackoverflow.com/questions/7853915/how-do-i-avoid-capturing-self-in-blocks-when-implementing-an-api
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-retain-cycles"
self.progressBlock = ^(CGFloat percentComplete) {
[self.delegate processingWithProgress:percentComplete];
}
#pragma clang diagnostic pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment