• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

以编程方式打开照片应用

用户头像
it1352
帮助1

问题说明

是否可以从iPhone应用程式启动「相片」应用程式?类似于发送邮件?

Is it possible to launch the "Photos" application from an iPhone app? Similar to launching mail?

[[UIApplication sharedApplication] openURL:url];

正确答案

#1

照片应用程式似乎未注册任何网址其他应用程序可以使用的方案。在其他系统应用程序(例如Safari)中有一个非常完善的模式:保存图像,导致将该图像放置在用户的相机胶卷中;我建议只是坚持这种预期的行为,也许使用一个警报来引导用户去看看你的应用程序的导出图像。

The Photos app doesn't appear to register any URL schemes that other apps can use. There's a pretty well-established pattern in other system apps (e.g. Safari) of "saving an image" resulting in that image being placed in the user's camera roll; I'd recommend just sticking with that expected behavior, and perhaps using an alert to direct the user to look there for your app's exported image.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcgcbhf
系列文章
更多 icon
同类精品
更多 icon
继续加载