I need to install my iPhone app as shortcut.
If a user long-touches an image in an email attachment, this option should appear along with “Print”, “Save to camera roll”, “Facebook”, “Twitter” etc.
Can anyone help me with this? Any help would be appreciated.
Asked
Active
Viewed 119 times
2

Puneet Sharma
- 9,369
- 1
- 27
- 33

Sangie
- 49
- 8
-
2http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application – Stavash Jul 30 '13 at 07:03
1 Answers
0
If you want your app to open the file of type .png,.jpeg or .pg, you must list Document type Key in Info.plist of your file as shown below:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>files</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>.png</string>
<string>.jpegf</string>
<string>.jpg</string>
</array>
</dict>
</array>

Puneet Sharma
- 9,369
- 1
- 27
- 33
-
Where should I add this in the info.plist. Inside the information property list? – Sangie Jul 30 '13 at 07:24
-
YEs.. open your .plist as Source Code and add it.. tell me if it works.. – Puneet Sharma Jul 30 '13 at 07:47
-
Everything is perfect. I added the same code. Still not working. But i cannot find my app icon when i long press the images. – Sangie Jul 30 '13 at 08:03