以编程方式打开照片应用 [英] Open Photos app programmatically

查看:111
本文介绍了以编程方式打开照片应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

[[UIApplication sharedApplication] openURL:url];


推荐答案

照片应用程式似乎未注册任何网址其他应用程序可以使用的方案。在其他系统应用程序(例如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.

这篇关于以编程方式打开照片应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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