如何在“打开方式或与...共享”中添加应用程序在照片图片?

编程入门 行业动态 更新时间:2024-10-10 15:28:04
本文介绍了如何在“打开方式或与...共享”中添加应用程序在照片图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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.

更多推荐

如何在“打开方式或与...共享”中添加应用程序在照片图片?

本文发布于:2023-11-13 06:21:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1583684.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:或与   应用程序   方式   照片   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!