Dismiss UIImagePickerController

后端 未结 4 2053

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:40

    For Swift use this:

    func imagePickerControllerDidCancel(picker: UIImagePickerController!) {
        picker.dismissViewControllerAnimated(true, completion: nil)
    }
    

提交回复
热议问题