模型嵌套模型的话一定要在implement中实现
@implementation DailyKnowledgeModel
+ (NSDictionary *)objectClassInArray
{
return @{ @"articles" : [DailyKnowledgeArticleModel class]};
}
@end
标明一下,不然会转换失败的,以前一直都没遇到过这样的坑,突然来个复杂的字典,找了半个小时懵逼了,
模型嵌套模型的话一定要在implement中实现
@implementation DailyKnowledgeModel
+ (NSDictionary *)objectClassInArray
{
return @{ @"articles" : [DailyKnowledgeArticleModel class]};
}
@end
标明一下,不然会转换失败的,以前一直都没遇到过这样的坑,突然来个复杂的字典,找了半个小时懵逼了,