如何在“打开方式或与...共享”中添加应用程序在照片图片? [英] How to add the application in "Open with or Share with " in Photos image?

查看:224
本文介绍了如何在“打开方式或与...共享”中添加应用程序在照片图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在图片打开方式中添加应用程序图标,如下图所示:

I would like to add the application icon in the image "Open with" as like the below image :

我已实现以下代码,在文档中添加打开方式但对于图像,它不起作用。

I have implement the below code to add the "Open with" in the document but for the image it doesn't work.

<dict>
        <key>CFBundleTypeName</key>
        <string>Unknown File</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.content </string>
        </array>
</dict>

Public.content在所有应用程序中添加open with。

Public.content is adding the "open with" in all the applications.

Public.image未添加打开方式。根据Xcode 5,我已根据以下屏幕截图修改了信息中的文档类型。

Public.image is not adding in the "Open with". As per Xcode 5 i have modified the document type in info as per the below screen shot.

请告诉我应该在添加应用程序图标的参数类型打开?

Can please let me know what type of parameter should add the app icon in "Open with" ?

推荐答案

据我所知,无法将您的应用添加到共享对话框中照片
应用程序(即使您的应用程序已正确配置为支持各种图像类型
或一般内容)。

As far as I know, it is not possible to add your app to the share dialog of the Photos application (even if your app is correctly configured to support all kinds of image types or general content).

要获取照片你的应用程序,你必须反过来使用
UIImagePickerController ALAssetsLibrary fetch 照片。

To get photos into your application, you have to go the other way around and use an UIImagePickerController or the ALAssetsLibrary to fetch the photos.

这篇关于如何在“打开方式或与...共享”中添加应用程序在照片图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆