Group Group Group Group Group Group Group Group Group

Universal Type Identifiers Tutorial for iOS: Importing and Exporting App Data | raywenderlich.com

In this tutorial, you’ll learn how to export and import app data to and from your iOS app, as well as create custom file types and extensions.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/8413525-universal-type-identifiers-tutorial-for-ios-importing-and-exporting-app-data

I have run into a weird issue. All was running well, but when I played around with the settings below, when I drag the prioritized tasklist on to the simulator, rather than starting TaskList it opens Files and asks me where I want to save the file. Nothing else has changed. I’m wondering, is it possible that I’ve typed it in correctly (it seems to be correct to me) but it hasn’t accessed the proper internal properties (assuming that UITypeTagSpecification is not just a made up label)?

Additional Exported UTI properties:

UITypeTagSpecification/Dictionary
public.filename-extension/Array
item 0/String/rwtl
item 1/String/RWTL

I’ve discovered my error. I had UITypeTag…

It should be UTTypeTag…

Great lesson btw. Thank you.

I have one more question, if anyone is reading this. Dragging a file, or clicking on it - if open files in place is set - starts the app up. How can you get it to open on the screen that you want? Would this be set in the openURLContexts method, or somewhere else?

@ehabamer Can you please help with this when you get a chance? Thank you - much appreciated! :]