2

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:

enter image description here

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

theMoonlitKnight
  • 387
  • 5
  • 15
  • 1
    If I get you properly you need this : http://www.imore.com/best-apps-support-sharing--action-extensions-ios-8. This is only avaliable in iOS 8. Check here : https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/index.html. Let me know I am right or not. – CRDave Jan 16 '15 at 12:32
  • Ok start learning it all the best. – CRDave Jan 16 '15 at 12:38
  • Don't forgot to accept answer of Jayahari V. – CRDave Jan 16 '15 at 12:50

2 Answers2

4

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
Jay
  • 854
  • 7
  • 17
  • 1
    I think you don't get question. He dont want image picker. He want that Default photo app share image with his application. – CRDave Jan 16 '15 at 12:26
  • Add this link in your answer : http://bryan.io/post/97658826431/what-we-learned-building-the-tumblr-ios-share This is very good experience sharing from Tumble developer team member. – CRDave Jan 16 '15 at 12:57
0

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

Vivek Molkar
  • 3,744
  • 1
  • 31
  • 43
  • My goal is not letting users take photos. It's instead opening their own photos from within the system photo app into my app through a custom screen like WeChat and Viber do. – theMoonlitKnight Jan 16 '15 at 12:28
  • You mean you have to access the Photos app? If that is the case follow this [link](https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/PickinganItemfromthePhotoLibrary.html) – Vivek Molkar Jan 16 '15 at 12:33