I'm trying to implement this framework from Github: https://github.com/hyperoslo/ImagePicker
Then I created an IBAction
in my view controller as described in the Description
:
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UINavigationBarDelegate {
@IBAction func addMemory(sender: UIBarButtonItem) {
let imagePickerController = ImagePickerController()
imagePickerController.delegate = self //Error here
present(imagePickerController, animated: true, completion: nil)
}
}
Error: Cannot assign value of type 'MemoriesTable' to type 'ImagePickerDelegate?'