Hi all I am implementing the following code to take a photo through my application
[[[UIApplication sharedApplication] keyWindow] setRootViewController:picker];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:picker animated:NO];
Can anyone tel me How I can go to the photo gallery after the user takes the photo and not return to the application.
If you want to shoot a picure use this code -
If you want to go to photo gallery and wants to select a photo from there use this code -
Notice the difference between the picker's sourceType
i think you might want to try this
How to open camera while I click the UIButton in iPhone?
or i really didn't get the question
Edit: Well you can use the same code with
UIImagePickerControllerSourcePhotoLibrary
after taking the pic from camera. I mean call this Function withUIImagePickerControllerSourcePhotoLibrary
then it will take you to photo Library and then back again to your application.