I'm developing an iOS app. I have a class that extends NSObject that defines 1 property
//.h file
@property (nonatomic,retain) NSMutableDictionary *livedata;
//.m file
if(self = [super init]){
self.livedata = [[NSMutableDictionary alloc] init];
[self.livedata setValue:@"myvalue" forUndefinedKey:@"myUndefinedKey"];
}
I'm getting this error. * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myUndefinedKey.'
I've used NSMutableDictionary in the past for kvc, kvo. Yes I see the class is not kvc compliant.