当我尝试在代码下运行时,我收到错误。
@IBAction func pickAnImage(sender: AnyObject) {
let imagePicker = UIImagePickerController()
imagePicker.delegate = self
present(imagePicker, animated: true, completion: nil)
}
由于未捕获的异常而终止应用 ' NSInvalidArgumentException',原因:' - [PickExample.ViewController pickAnImage:]:无法识别的选择器发送到实例0x7fee83c09480'
class AppDelegate:UIResponder,UIApplicationDelegate {(Thread1: 信号SIGABRT)
我是否必须在info.plist
中输入密钥?