You can use NSURLConnection to load a file into memory and then write it to a file.
[NSURLConnection sendAsynchronousRequest:[NSURLRequest requestWithURL:yourURL] queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error){ [data writeToFile:yourPath atomically:YES];
You can also create your own instance of NSOperationQueue to record in the background.
If the file is large and you do not want to store it entirely in memory, you should use AFNetworking , otherwise you could write your own implementation using NSOutputStream to write directly to disk.
Tricertops
source share