Setting delegate for UIImagePicker returns error
You forgot about UINavigationControllerDelegate in your ViewController class defenition.
The image picker’s delegate object.
Declaration
unowned(unsafe) var delegate: protocol<UIImagePickerControllerDelegate, UINavigationControllerDelegate>?
You must add UINavigationControllerDelegate to the class declaration.
class ViewController: UIViewController, UITextFieldDelegate, UIPickerViewDelegate, UIPickerViewDataSource, UIImagePickerControllerDelegate, UINavigationControllerDelegate { // Some thing here}