Open Photos app programmatically

雨燕双飞 提交于 2019-12-19 06:55:05

问题


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

[[UIApplication sharedApplication] openURL:url];

回答1:


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.




回答2:


This article looks like it might be useful? Getting images from the iPhone



来源:https://stackoverflow.com/questions/3187872/open-photos-app-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!