문제

I keep trying to launch my app and it keeps "terminating with uncaught exception of type NSException" and sending me from the simulator back to this xcode screen: ![enter image description here][1]

I see that the problem is in the first thread but i dont know where at in my code or event paths this corresponds to.

here are the other parts of the 1st thread that contains the error: enter image description here

The debugger says this:

2013-11-21 18:59:23.330 Bluetooth_RSSI_test[24377:a0b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key set1m.'

Here is my code for that includes set1m(Note that aValue is a property(nonatomic, strong) of type NSNumber and has been synthesized):

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

in .m file

- (IBAction)set1m:(id)sender
{
    aValue = RSSIvalue;
    self.RSSIat1m.text = [NSString stringWithFormat:@"%@", aValue];
}
도움이 되었습니까?

해결책

Check the outlet connected to IBAction. PS: i can't comment thats why i put it as answer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top