Document Type Type Xcode 5

Follow the guide in

http://www.raywenderlich.com/1980/email-tutorial-for-ios-how-to-import-and-export-app-data-via-email-in-your-ios-app

To associate a document type with my application so that my application is responsible for opening this document.

Xcode 5 works in a completely different way ... For your purpose, the Info tab is the "Document Types" line ... I'm not sure how to use it, is there a sample for me?

thanks

+6
source share
2 answers

I am sure that you either realized this or moved on, but advised most of these guides a bit: you can often download the completed code from the website. I did this and downloaded it in Xcode 5.0, and it works great. Here is a screenshot of the plist entries (under Resources / ScaryBugs -Info.plist) for the document and export:

Document plist entries

Another way to change document types in Xcode is through the project information (select the project in the Navigator, then the target in the list of projects and goals, then the information tab). Here is a screenshot of what it looked like to me:

Document project info entries

+8
source

Here is another very useful link directly from Apple support. Take a look at the screenshot they have in the example and literally replicate everything from this screenshot and just change their user extension from catinfo to pdf, ttf, xml or whatever you like

NOTE. Make sure you test this on a real iphone / ipad, not a simulator.

https://developer.apple.com/library/ios/qa/qa1587/_index.html

0
source

Source: https://habr.com/ru/post/954936/


All Articles