ios - How to get UIManagedDocument to show up as a file package and not a folder -


i'm working on core data document based application, using uimanagedobject subclass storage container.

when saving file (to itunes file sharing) file shows folder, instead of file package. i'd show single file users can't accidentally mess file structure.

here's i've done far. in subclass :

@implementation  - (nsstring *)savingfiletype {     return @"com.app.filetype"; }  - (nsstring *)filenameextensionfortype:(nsstring *)typename                          saveoperation:(uidocumentsaveoperation)saveoperation {     return @"ext"; }  @end 

in target info, register exported uti :

enter image description here

and... figured out.

in "exported utis" section of info.plist, add "com.apple.package" "conforms to" field of custom uti.enter image description here


Comments