Created
November 19, 2013 16:46
-
-
Save miwillhite/7548440 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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