Post

Replies

Boosts

Views

Activity

"Open in..." for images
I'm using the following code in my Info.plist to get my app to appear in the "Open in.." menu via the sharing button for PDF files: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>PDF</string> <key>LSHandlerRank</key> <string>Alternate</string> <key>LSItemContentTypes</key> <array> <string>com.adobe.pdf</string> </array> </dict> </array> This is working fine. But I cannot get the same effect for any type of image file. I was trying to add this according to some Stackoverflow posts: <dict> <key>CFBundleTypeName</key> <string>public.jpeg</string> <key>LSHandlerRank</key> <string>Alternate</string> <key>LSItemContentTypes</key> <array> <string>public.jpeg</string> <string>public.jpg</string> </array> </dict> <dict> <key>CFBundleTypeName</key> <string>public.png</string> <key>LSHandlerRank</key> <string>Alternate</string> <key>LSItemContentTypes</key> <array> <string>public.png</string> </array> </dict> However, it is not working for images. Is this supported? Should it work?
0
0
820
Sep ’21