我一直试图启动我的应用程序,并且它始终“终止为NSException类型的未捕获异常”,并将我从模拟器发送回此xcode屏幕:
![在此处输入图片描述] [1]

我看到问题出在第一个线程中,但我不知道在此对应的代码或事件路径中的什么位置。

这是包含错误的第一个线程的其他部分:

调试器说:

2013-11-21 18:59:23.330 Bluetooth_RSSI_test [24377:a0b] ***由于未捕获的异常'NSUnknownKeyException'而终止应用程序,原因:'[setValue:forUndefinedKey:]:此类不是针对key set1m。”

这是我的代码,其中包括set1m(注意aValue是NSNumber类型的属性(非原子的,强的),已经合成):

in .h file
- (IBAction)set1m:(id)sender;

in .m file

- (IBAction)set1m:(id)sender
{
    aValue = RSSIvalue;
    self.RSSIat1m.text = [NSString stringWithFormat:@"%@", aValue];
}

最佳答案

检查连接到IBAction的插座。
附言:我不能评论这就是为什么我把它作为答案。

10-08 05:35