jsonModel 中含有id的解决办法

.h

@property (nonatomic,copy)NSString *nId;//编号
- (void)setValue:(id)value forUndefinedKey:(NSString *)key ;

.m

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

猜你喜欢

转载自blog.csdn.net/ZHUTAN_123/article/details/77834878