Problem Selecting Numbers spreadsheet using Document Picker
Problem Selecting Numbers spreadsheet using Document Picker
- Subject: Problem Selecting Numbers spreadsheet using Document Picker
- From: email@hidden
- Date: Wed, 03 Dec 2014 12:48:23 -0800
Hello all,
I'm trying to integrate a UIDocumentPicker into my iPad app. Things were
pretty easy to get going but I see a few issues.
The biggest problem is that the user can choose Numbers spreadsheet
documents in the user's iCloud Drive but my app can't use them.
Specifically, the Document Picker shows a folder in iCloud Drive called
Numbers. Selecting any file from this folder will return a nil URL to
documentPicker:didPickDocumentAtURL:
And wow, the document picker parameter is nil too.
This appears to be a bug but I thought I'd ask here in case there's
something I need to do. The documentation for Document Pickers is not
extensive and I don't see anything discussing Numbers documents or special
handling of the iCloud Document Picker .
So, does anyone have any ideas on how to handle this situation?
We would like to support Numbers documents so is there a way to get the
file data? If I'm not supposed to be reading documents from the Numbers
folder, is there a way to tell the Document Picker not to show Numbers
documents? I want to support CSV documents so I add the following UTI to
my supported files in the Document Picker initialiser:
kUTTypeUTF8TabSeparatedText
This causes the Numbers documents to be selectable in the picker. I also
add kUTTypeSpreadsheet but by itself doesn't cause the picker to show
Numbers documents.
Thanks for any ideas, pointers, etc.
Doug Hill
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden