1网络加载json的时候,要在模型的实现文件里写:
- (void)setValue:(id)value forKey:(NSString *)key
{
}
2本地加载json的时候,要在模型的实现文件里写:
- (void)setValue:(nullable id)value forUndefinedKey:(NSString *)key
{
}
1网络加载json的时候,要在模型的实现文件里写:
- (void)setValue:(id)value forKey:(NSString *)key
{
}
2本地加载json的时候,要在模型的实现文件里写:
- (void)setValue:(nullable id)value forUndefinedKey:(NSString *)key
{
}
转载于:https://www.cnblogs.com/shenlaiyaoshi/p/6211371.html