haradashinya
12/11/2013 - 1:43 AM

gistfile1.m

	    ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];

	    // make Image
	    NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];

	   // savedImages has image paths.
	    NSArray *savedImages = (NSMutableArray *)[ud objectForKey:@"images"];


	    for(int i = 0 ; i < [savedImages count] ; i++){
	        NSString *path = [savedImages objectAtIndex:i];
	            [library assetForURL:[NSURL URLWithString:path]
	                     resultBlock:^(ALAsset *asset) {

	                         if(asset){
	                             NSLog(@"Data exists.");
	                             ALAssetRepresentation *assetRepresentation = [asset defaultRepresentation];
	                             
	                             UIImage *savedImg = [UIImage imageWithCGImage:[assetRepresentation fullScreenImage]];
	                             [self.imageObjects addObject:savedImg];
	                         }else{
	                             NSLog(@"No Data");
	                         }
	                     } failureBlock: nil];