Skip to content

Instantly share code, notes, and snippets.

@miwillhite
Created November 19, 2013 16:46
Show Gist options
  • Select an option

  • Save miwillhite/7548440 to your computer and use it in GitHub Desktop.

Select an option

Save miwillhite/7548440 to your computer and use it in GitHub Desktop.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, (unsigned long)NULL), ^{
[self setClient:[[JJRemoteAssetClient alloc] init]];
[self.client GET:[NSURL URLWithString:self.thumbURL]
success:^(AmazonServiceResponse *response) {
NSLog(@"Fetched thumbnail: %@", self.thumbURL);
[JJRemoteAssetClient saveImageWithData:response.body
andName:self.thumbName];
}
failure:^(NSError *error) {
NSLog(@"error: %@", error);
}];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment