无法识别的选择器发送到实例xcode版本8.0(8A218a)

时间:2016-10-12 17:32:31

标签: ios swift xcode

当我尝试在代码下运行时,我收到错误

 @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中输入密钥?

0 个答案:

没有答案