I have tried every variation of dismissing a UIImagePickerController with out any luck. What am i doing wrong.
- (IBAction)choosePhoto
{
self.picker = [[
Are you running iOS 6? If so, presentModalViewController:
is deprecated and could be causing some unexpected results. Try using presentViewController:animated:completion:
instead.
But technically, here's all you should have to do:
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)imagePicker
{
[imagePicker dismissViewControllerAnimated:NO completion:nil];//Or call YES if you want the nice dismissal animation
}