以编程方式打开照片应用

问题描述:

是否可以从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.