0

Possible Duplicate:
How do I access photos from my iphone app?

I'm building an app that allows the user to import a photo currently on their phone. I noticed several other apps have this option (WhatsApp, Facebook come to mind). Is there an example how this is done?

I've searched for an API for this...and not finding it. I did however, find this: https://github.com/andreyvit/SoloComponents-iOS

It allows to show the photos, but how do we get the photos currently on the phone?

Community
  • 1
  • 1
KVISH
  • 12,923
  • 17
  • 86
  • 162
  • http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html – Echihl Jan 03 '13 at 19:49
  • Wow, I was looking at google all over for this. If you put this below, I will accept the answer. – KVISH Jan 03 '13 at 19:53
  • See my answer ...... Without third party tool you get photos from facebook http://stackoverflow.com/questions/30207465/ios-facebook-album-photos-picker/31789234#31789234 – Maulik shah Sep 03 '15 at 04:09

2 Answers2

3

You can find the full documentation here: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html As a bonus, you can also take pictures with this class.

Echihl
  • 346
  • 2
  • 9
1

You can use the UIImagePickerController for doing this.

This is a simple tutorial which may help you. Also check this link for integrating the camera photos

Midhun MP
  • 103,496
  • 31
  • 153
  • 200