在 iPhone 中默认照片应用程序的 UIActionSheet 中显示我的应用程序

发布于 2025-01-02 17:54:05 字数 268 浏览 3 评论 0原文

我的应用程序已注册某些文件类型,图像 + pdf 等,遵循指南 由苹果公司提供。当遇到 pdf 文件时,我的应用程序确实会显示(“打开方式”选项) 在 mobile-safari 中,但图像文件并非如此。在默认的“照片”中 苹果提供的应用程序,“打开方式”选项不显示。大概这是因为 它是在不使用文档交互控制器的情况下实现的。但有没有 使我的应用程序出现在 UIActionSheet 按钮中的方法,该按钮出现在左下角 角落 ?

我不想使用 UIImagePickerController 来选择保存的图像。

My app is registered for certain file types, images + pdf etc, following the guidelines
provided by Apple. My app does show up("open in" option) when pdf files are encountered
in mobile-safari, but it is not the case with image files. In the default "Photos"
app provided by apple, the "open in" option does not show up. Probably this is because
it is implemented without using the document interaction controller. But is there any
way to make my app appear in the UIActionSheet button, which appears at the bottom left
corner ?

I do not want to use the UIImagePickerController for choosing the saved images.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戴着白色围巾的女孩 2025-01-09 17:54:05

您唯一能做的就是将此键值对添加到您的 info.plist 文件中。 iPhone 将图片保存为“.JPG”,因此您应该将其设置为文件类型。

(如果它没有出现在“照片”操作表中,则意味着苹果不希望它出现。您只能希望有一天......)

ps更多信息和详细说明在这里:
注册您的应用支持的文件类型

the only thing you can do is add this key-value pair to your info.plist file. iPhone saves pictures in ".JPG", so that's what you should put as the file type.

(if it doesn't appear in Photos action sheet, that means that Apple doesn't want it to appear. You'll just have to hope that some day...)

p.s. more information and detailed instructions here:
Registering the File Types Your App Supports

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文