Open Photos app programmatically

后端 未结 2 1306
独厮守ぢ
独厮守ぢ 2021-01-12 14:06

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

[[UIApplication sharedApplication] openURL:url];


        
相关标签:
2条回答
  • 2021-01-12 14:36

    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.

    0 讨论(0)
  • 2021-01-12 14:46

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

    0 讨论(0)
提交回复
热议问题