I am new in iPhone App Development. In my code, i am able to select multiple images from the library and get the path of only 1 image. Then i am creating a copy of that image in Documents directory in a folder called "images" and trying to zip it. Now i want to get the path of all those selected multiple images, copy them in documents directory in the same folder "images" and i want to zip them later. Please tell me how i can do the above mentioned tasks in my code. This is how my code looks as of now:
- (void) imagePickerController:(QBImagePickerController *)imagePickerController didFinishPickingMediaWithInfo:(NSDictionary *)info
{
if (imagePickerController.allowsMultipleSelection) {
NSArray *mediaInfoArray = (NSArray *)info;
NSLog(@"Selected %d photos", mediaInfoArray.count);
NSData *webData = UIImagePNGRepresentation([[mediaInfoArray objectAtIndex:0] objectForKey:@"UIImagePickerControllerOriginalImage"]);
NSLog(@"web data length is: %u",[webData length]);
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *localFilePath = [documentsDirectory stringByAppendingString:@"/images.png"];
[webData writeToFile:localFilePath atomically:YES];
NSLog(@"localFilePath.%@",localFilePath);
}