iPhone: How do I get the file path of an image saved with UIImageWriteToSavedPhotosAlbum()?

I finally found out the answer. Apparently the UIImage methods strip out metadata and so using UIImageWriteToSavedPhotosAlbum is no good. However in ios4 Apple put in a new framework to handle the photo library called the ALAssetsLibrary. First you need to right click on the Targets and in the build part, add the AlAsset Framework … Read more

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

//View Controller header(.h) file.. #import <UIKit/UIKit.h> #include <AssetsLibrary/AssetsLibrary.h> @interface getPhotoLibViewController : UIViewController { ALAssetsLibrary *library; NSArray *imageArray; NSMutableArray *mutableArray; } -(void)allPhotosCollected:(NSArray*)imgArray; @end //implementation file declare global count variable as static int count=0; @implementation getPhotoLibViewController -(void)getAllPictures { imageArray=[[NSArray alloc] init]; mutableArray =[[NSMutableArray alloc]init]; NSMutableArray* assetURLDictionaries = [[NSMutableArray alloc] init]; library = [[ALAssetsLibrary alloc] init]; void (^assetEnumerator)( … Read more