Picker Error Message on Exit (encountered while discovering extensions: Error Domain=PlugInKit Code=13) With Swift 4 - Xcode 9

前端 未结 10 1136
生来不讨喜
生来不讨喜 2021-01-31 10:04

Similar to

PhotoPicker discovery error: Error Domain=PlugInKit Code=13

and also to

https://forums.developer.apple.com/thread/82105

BUT I have t

10条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 10:35

    Make sure you declare that your class implements UINavigationControllerDelegate.

    extension MyViewController: UINavigationControllerDelegate {}
    

    For some reason in Xcode 9.0 it warned me to declare the delegate as such:

    imagePicker.delegate = self as? UIImagePickerControllerDelegate & UINavigationControllerDelegate
    

提交回复
热议问题