I'm trying to download a file from the
-documentPicker:didPickDocumentAtURL:
method. I've tried to get the data of the file using
NSData *data = [NSData dataWithContentsOfURL:url];
but it didn't work how I expected, because the UIDocumentPicker fires the -documentPicker:didPickDocumentAtURL: -method before the file is downloaded.
How can I get the NSData from the file when it's downloaded?
Thanks in advance, Fabian.