Skip to content

Instantly share code, notes, and snippets.

@flexaddicted
Created February 22, 2015 13:28
Show Gist options
  • Select an option

  • Save flexaddicted/dbae4d69e074a2b47419 to your computer and use it in GitHub Desktop.

Select an option

Save flexaddicted/dbae4d69e074a2b47419 to your computer and use it in GitHub Desktop.
// in NetworkFetcher class
- (void)requestCompleted {
if(self.completionHandler) {
// invoke the block with data
self.completionHandler(self.downloadedData);
}
// break the retain cycle
self.completionHandler = nil;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment