【发布时间】:2016-07-14 08:53:00
【问题描述】:
我正在尝试从 Github 实现这个框架: https://github.com/hyperoslo/ImagePicker
然后我在我的视图控制器中创建了一个IBAction,如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)
}
}
错误:无法将类型“MemoriesTable”的值分配给类型 'ImagePickerDelegate?'
【问题讨论】: