iOS - open photo from photo album in my app

2019-02-26 02:02发布

问题:

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