【发布时间】:2015-04-07 16:48:30
【问题描述】:
应用程序由于未捕获的异常“NSUnknownKeyException”,原因: '[setValue:forUndefinedKey:]: 此类与键 button_1 的键值编码不兼容。'
class ViewController: UIViewController {
@IBAction func button1_pressed(sender: AnyObject) {
NSLog("hello");
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
【问题讨论】: