Accessing photos from a specific album from photolibrary

前端 未结 5 1775
情书的邮戳
情书的邮戳 2020-12-29 15:27

While using uiimagepicker, is there any way of specifying which user created album the images should be picked from?Ill explain.Suppose there are two albums created by the u

相关标签:
5条回答
  • 2020-12-29 15:35

    If you want to present a media browser to the user (so that he/she can pick an image), I think you can only choose to present the entire photo library or the Camera Roll album (or Saved Photos album, if the device hasn't a camera).

    http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/PickinganItemfromthePhotoLibrary.html#//apple_ref/doc/uid/TP40010408-SW1

    EDIT

    I've found here, on github an open source UIImagePickerController clone by Jeena. Maybe, it should be useful for you.

    0 讨论(0)
  • 2020-12-29 15:39

    You should use ALAssetsLibrary and make your own custom picker. You can find a custom image picker using ALAssetsLibrary at https://github.com/B-Sides/ELCImagePickerController

    When the user selects an image from the custom picker, you are returned with the ALAsset object from which you can get the required image, album it belongs to etc. You can save that and modify the custom picker to navigate to a selected album.

    0 讨论(0)
  • 2020-12-29 15:40

    I am not sure but pls take a look at ALAssetsLibrary

    0 讨论(0)
  • 2020-12-29 15:42

    hello in the folder: /Users/username/Library/Application Support/iPhone Simulator/4.3/Applications you can find your images that are saved. when you save the path you maybe can substract the name of the folder. grtz

    0 讨论(0)
  • 2020-12-29 15:46

    Give the path for specific album and get the images.

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