阅读背景:

iOS Xcode 6报错:setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key v

来源:互联网 

模型里永不了KVC

添加2个方法

//找未找到的Key
- (id) valueForUndefinedKey:(NSString *)key
{
    NSLog(@"Undefined Key: %@",key);
    return nil;
}
//设置未找到的Key
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    NSLog(@"Undefined Key: %@",key);
}//找未找到的Key
- (id) value



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: