How to link a CSV file to my application in iOS 7

Good afternoon, everyone.

I followed these two tutorials in succession, trying to link my application with the csv file (application for the email application), but after I added these changes below to the plist application file, then create the application and launch its device (iPhone 4, iOS 7.0.4), nothing happens, I mean, when I clicked on the CSV file in the letter, my application still does not appear in the list of available applications, I just don’t know where I was wrong, or iOS 7 has a different way do it?

http://blog.spritebandits.com/2011/12/14/importing-csv-data-file-into-an-ios-app-via-email-attachment/

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

this is what my plist changes (new entries added with a follow-up guide) looks like this:

enter image description here

here is the application settings screen:

enter image description here

and here is the xml version:

<key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>CSV Document</string> <key>LSHandlerRank</key> <string>Owner</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSItemContentTypes</key> <array> <string></string> </array> </dict> </array> <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeDescription</key> <string>CSV Document</string> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeIdentifier</key> <string>Damian-s.${PRODUCT_NAME:rfc1034identifier}</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <string>csv</string> <key>public.mime-type</key> <string>application/inventorytodo</string> </dict> </dict> </array> 
+6
source share
1 answer

You are missing the UTI type in the CFBundleDocumentTypes definition:

 <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>CSV Document</string> <key>LSHandlerRank</key> <string>Owner</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSItemContentTypes</key> <array> <string></string> </array> </dict> </array> 

it should be:

 <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>CSV Document</string> <key>LSHandlerRank</key> <string>Owner</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSItemContentTypes</key> <array> <string>Damian-s.${PRODUCT_NAME:rfc1034identifier}</string> </array> </dict> </array> 
+7
source

All Articles