Having a problem in some swift code I had written for an OCR translation app. The code snippet is below:
@IBAction func btnOCR(sender: AnyObject) {
var
You must add UINavigationControllerDelegate to the class declaration.
class ViewController: UIViewController, UITextFieldDelegate, UIPickerViewDelegate, UIPickerViewDataSource, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
// Some thing here
}
You forgot about UINavigationControllerDelegate in your ViewController class defenition.
The image picker’s delegate object.
Declaration
unowned(unsafe) var delegate: protocol<UIImagePickerControllerDelegate, UINavigationControllerDelegate>?