尝试使用键值编码在我的对象上设置值:
[engine setValue:[NSNumber numberWithInt:horsePower]
forKey:@"horsePower"];
导致错误:
[<Slant6 0x7fbc61c15c40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key horsePower.
我需要做什么才能使engine
键值编码兼容?