Dismiss UIImagePickerController

后端 未结 4 2020

I have tried every variation of dismissing a UIImagePickerController with out any luck. What am i doing wrong.

- (IBAction)choosePhoto
{
    self.picker = [[         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 16:47

    For Swift 4:

    func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
            picker.dismiss(animated: true, completion: nil)
    }
    

提交回复
热议问题