Hey, I'm new to the iPhone, and I'm trying to create a gallery app. Basically, I want to need to save all the captured images to a specific folder, for example, the new album "My_App Images" associated with our application name in the iPhone device gallery, it works for me, but I am having problems changing the name image file, I do not know that you can specify the file name? Using iPhoto, I am currently getting the image file name as "IMG_0094.jpg", can we change it with any other file name, for example, "Anyfilename.png", programmatically?
here is my code for saving images to a specific album:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
{
[self.library saveImage:image toAlbum:@"My_App Images" withCompletionBlock:^(NSError *error) {
if (error!=nil) {
NSLog(@"Image saving error: %@", [error description]);
}
}];
[picker dismissViewControllerAnimated:NO completion:nil];
}
. !