คลังเก็บบล็อก

Code iPhone: Load Photo from Photos Album (Full Function)


Code iPhone: Load Photo from Photos Album (Full Function)

In .h file (header/@interface)


#import <AssetsLibrary/AssetsLibrary.h>

typedef void (^ALAssetsLibraryAssetForURLResultBlock)(ALAsset *myasset);

typedef void (^ALAssetsLibraryAccessFailureBlock)(NSError *error);

//function

-(void)loadPhotoFromURL:(NSURL*)imgURL thumbnail:(BOOL)useThumbnail showIn:(UIImageView*)imView;

Note! import existing framework: AssetsLibrary.framework

Read the rest of this entry

Advertisements
%d bloggers like this: