iOS开发解决 jsonModel 属性跟系统的重复

-(id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"new_app_picpath"]) {
        _mynew_app_picpath = value;
    }
}

原文地址:https://www.cnblogs.com/WJJ-Dream/p/5809191.html