0
// photo gallary or from library  

NSUInteger groupTypes;
groupTypes = ALAssetsGroupAlbum  | ALAssetsGroupLibrary  |        ALAssetsGroupSavedPhotos | ALAssetsGroupPhotoStream  ;
[assetsLibrary enumerateGroupsWithTypes:groupTypes usingBlock:listGroupBlock      failureBlock:failureBlock];

I am trying to fetch images libraries from iPad devices using ALAssetsLibrary. From all the fetched libraries, "Photo library" shows empty in some devices.

V. Garg
  • 15
  • 6

1 Answers1

0

If you are using ALAssetsGroupPhotoStream then it will return asset-url but cannot generate image from that url. Because stream assets are not storing their bitmap.

Instead you should avoid that and get only those images which are store in device.

add this line where you allocate your ALAssetsLibrary.

[ALAssetsLibrary disableSharedPhotoStreamsSupport];

It will not return shared stream photos which are nil.

Pratik Patel
  • 1,393
  • 12
  • 18
  • Please take a look of my answer on same type of questions: http://stackoverflow.com/questions/27858189/how-to-get-all-photos-moment-wise-using-alassetlibrary-in-ios7/28644922#28644922 – Pratik Patel Aug 10 '16 at 04:52