Skip to content

增加字典数组转模型数组的方法#253

Open
jiaair wants to merge 3 commits intoibireme:masterfrom
jiaair:master
Open

增加字典数组转模型数组的方法#253
jiaair wants to merge 3 commits intoibireme:masterfrom
jiaair:master

Conversation

@jiaair
Copy link

@jiaair jiaair commented Dec 7, 2017

提供包含字典数组的转换方法:

  • (NSMutableArray *)yy_modelArrayWithKeyValueArray:(NSArray *)keyValueArray;
    递归调用+ (instancetype)yy_modelWithDictionary:(NSDictionary *)dictionary方法不改变原有嵌套结构,如果元素不是字典则返回一个没有默认值的模型实例。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant