Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- queue: [NSOperationQueue mainQueue]
- completionHandler: ^( NSURLResponse *response, NSData *data, NSError *error ) {
- if(error)
- {
- }
- else
- {
- NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
- NSUserDomainMask, YES);
- NSString *filePath = [[paths objectAtIndex:0] stringByAppendingPathComponent:path];
- [data writeToFile:filePath atomically:YES];
- }
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement