i want to copy large data ie... around 1400 files around 500 MB from web server to iphone documents directory. it is taking more than hour .some how i want to reduce the time taken for coping file.
i m using code:
NSData *data=[NSData dataWithContentsOfURL:[NSURL URLWithString:someURL]];
if([data writeToFile:self.documentsDirectory atomically:YES])
NSLog(@"File Copied");
i m using above code in for loop till no of file ends. can some one suggest a better way??? i had tried NSOperationQueue and CFFTPURL but doesnot improve performance significantly.