How to download file without storing information on iCloud?
My App is the App for downloading pdf to the machine. It was rejected by Apple from the reason that "In particular, we found that after downloading two issues, your app stores 56.5 MB. To check how much data your app is storing: - Go to Settings> iCloud. > Storage & Backup> Manage Storage ". I would like to know how to write if the information is not stored on iClound.
My Script :
- (void) DownloadFile:(NSURL *)url Name:(NSString *)name Folder:(NSString *)folder{
NSFileManager *fileManager = [NSFileManager defaultManager];
NSData *myData = [NSData dataWithContentsOfURL:url];
NSString *file = [NSString stringWithFormat:@"%@/%@",folder,name];
if(![fileManger fileExistsAtPath:file]){
[fileManger createFileAtPath:file contents:myData attributes:nil];
}
}