Pages

Wednesday, March 20, 2013

import image email attachment into app

I am trying to import email attachments into my iphone app. I am placing code in my info.plist with uti etc. I have successfully imported audio attachments (caf, aifc, aif, m4a, and mp3). But I am not being successful at all with image files. I want to import jpg, jp2, pic, tif, and png files.


I have written this code in my info.plist for the audio files.



 

Code:

 

LSItemContentTypes

com.apple.coreaudio-format

CFBundleTypeRole

Viewer

CFBundleTypeName

.caf

LSHandlerRank

Alternate

as I said this works fine for all the audio types I want.


But when I enter this code


 

Code:

 

LSItemContentTypes

public.png

CFBundleTypeRole

Viewer

CFBundleTypeName

.png

LSHandlerRank

Alternate

 

for the images, nothing happens. The app icon doesn't show up in the modal view to tap and "open in" my app.


can anyone see any thing I am doing wrong here?

 

I have looked at what there is about this and nothing seems to suggest that you need to do any thing different for images than for audio files.


I appreciate any and all help.


View the original article here

0 comments:

Post a Comment