Is it possible to launch (redirect the user to) the native photo gallery application of iphone from my app, similar to emails? Is this now possible in 4.2 sdk?
For this, you have to create and present a UIImagePickerController like this:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:imagePicker animated:YES];
You can change imagePicker.sourceType to imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; if you want the user to use the camera instead.
The delegate method: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info will give you the image in the info dictionary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With