iOS - open photo from photo album in my app

浪尽此生 提交于 2019-12-02 03:32:43

问题


I would like to let users browse photos in their photo albums, tap the action button, and share/open selected photos in my app. Some apps (like Viber and WeChat) provide a custom view to handle this. This is the WeChat screen:

What is the name of this feature and which class do I have to use to achieve this behavior?


回答1:


You need to do check for share option in the ioS extensions

  1. app extensions
  2. extension programming guide
  3. Share extension
  4. Example from Tumbler developer team



回答2:


You can use UIImagePickerController for the purpose.
Find Class reference here
Here is a Sample code



来源:https://stackoverflow.com/questions/27983566/ios-open-photo-from-photo-album-in-my-app

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