how to find the size of a document in iCloud before picking it and downloading to device using UIDocumentPickerViewController.I can download the document to the device and then converting to NSData,i can determine the file size,but can we avoid downloading the document itself and predetermine the file size before downloading .I could not find any method or property in uidocumentpickerviewcontroller.
- (void)documentPicker:(UIDocumentPickerViewController *)controller didPickDocumentAtURL:(NSURL *)url {
NSFileCoordinator *coordinator = [[NSFileCoordinator alloc] initWithFilePresenter:nil];
NSError *error = nil;
[coordinator coordinateReadingItemAtURL:url options:0 error:&error byAccessor:^(NSURL *newURL) {
//assuming the file coordinator has downloaded the file here and provided the new url here
}
}