I have tried every variation of dismissing a UIImagePickerController with out any luck. What am i doing wrong.
- (IBAction)choosePhoto { self.picker = [[
For Swift 4:
func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { picker.dismiss(animated: true, completion: nil) }