¡@

Home 

2014/10/15 ¤U¤È 10:04:04

iphone Programming Glossary: asseturldictionaries

To Get all Images from Photo Library in iphone

http://stackoverflow.com/questions/11372789/to-get-all-images-from-photo-library-in-iphone

I got the URL path of photos but I don't know how to get photo through it. My Code is as Follow NSMutableArray assetURLDictionaries NSMutableArray alloc init void ^assetEnumerator ALAsset NSUInteger BOOL ^ ALAsset result NSUInteger index BOOL stop if result.. index BOOL stop if result nil if result valueForProperty ALAssetPropertyType isEqualToString ALAssetTypePhoto assetURLDictionaries addObject result valueForProperty ALAssetPropertyURLs NSLog @ result is @ result NSLog @ asset URLDictionary is @ assetURLDictionaries.. addObject result valueForProperty ALAssetPropertyURLs NSLog @ result is @ result NSLog @ asset URLDictionary is @ assetURLDictionaries NSURL url NSURL result defaultRepresentation url library assetForURL url resultBlock ^ ALAsset asset assetsp addObject..

Get all of the pictures from an iPhone photoLibrary in an array using AssetsLibrary framework?

http://stackoverflow.com/questions/12633843/get-all-of-the-pictures-from-an-iphone-photolibrary-in-an-array-using-assetslibr

void getAllPictures imageArray NSArray alloc init mutableArray NSMutableArray alloc init NSMutableArray assetURLDictionaries NSMutableArray alloc init library ALAssetsLibrary alloc init void ^assetEnumerator ALAsset NSUInteger BOOL ^ ALAsset result.. index BOOL stop if result nil if result valueForProperty ALAssetPropertyType isEqualToString ALAssetTypePhoto assetURLDictionaries addObject result valueForProperty ALAssetPropertyURLs NSURL url NSURL result defaultRepresentation url library assetForURL..