I was following this tutorial to create a image picker which is accessed from a UITableViewController. However it fails to compile in this line:
imagePicker.delegate = self
With this error:
Cannot assign value of type 'ProfileTableViewController' to type 'protocol<UIImagePickerControllerDelegate, UINavigationControllerDelegate>?'
How do I solve this? My class:
class ProfileTableViewController: UITableViewController,UIGestureRecognizerDelegate,UIImagePickerControllerDelegate {
override func viewDidLoad() {
imagePicker.delegate = self
}