(1)字典中包含关键字或者把字典里的key对应模型中不一样的属性名
在model中把关键字替换掉,把字典中的text替换成了属性mytext
Paste_Image.png
(2)模型转字典
Paste_Image.png
(3)字典数组转模型数组
NSMutableArray *tempArr = [YYStatus mj_objectArrayWithKeyValuesArray:informationdic[@"content"]]
(4)字典里有数组 数组中有模型
Paste_Image.png
需要在person类中 声明books数组里面放的是什么类
Paste_Image.png
字典数组转为模型数组
Paste_Image.png
实用