YYModel icon indicating copy to clipboard operation
YYModel copied to clipboard

High performance model framework for iOS/OSX.

Results 105 YYModel issues
Sort by recently updated
recently updated
newest added

数组字典多维混合结构待支持,准备增加新的配置类方法加以实现

fixed #190 问题根本原因在于,数组解析时,json 数据格式与目标模型格式不匹配

key 对应的是个字符串,字符串内部是一个 JsonArray,这种情况直接使用yy_modelWithDictionary,这个节点解析不出来,只有先将这个字符串转一下才行。使用 MJExtension 可以,YYModel这种情况好像没有做处理。 ![d6a7e6f3-f4c6-47ef-9aca-48787fa873d7](https://user-images.githubusercontent.com/7628550/34146021-5ee611e4-e4d3-11e7-84e7-7e73eaf308c4.png)

您好,我遇到了一个问题,希望能够听听您的看法: 从服务器获取到的 json dict 模型,我们称之为 server json 吧,它大概长这样: ``` { "name": "应用创造学", "other": "other values", "ext": { "desc": "应用创造学是一门研究创造的学问" } } ``` 然而我希望它在数据库中,是这个样子: ``` { "name": "应用创造学", "other": "other values",...

This is a fix for #278 . hash equality won't work if the object doesn't ovrride the hash method.

``yy_modelIsEqual: `` returns false if models haven't implemented hash function. ``yy_modelIsEqual: `` returns ``NO`` on [NSObject+YYModel.m#LL1753!](https://github.com/ibireme/YYModel/blob/master/YYModel/NSObject%2BYYModel.m#L1753) and this won't work since hash returns the value of the memory address if...

// JSON: { "n":"Harry Pottery", "p": 256, "ext" :[ ////////修改的部分 { "desc" : "A book written by J.K.Rowing."}, { "desc" : "A book written by J.K.Rowing."}, { "desc" : "A...

这个接口定义不太合理, `+[NSArray yy_modelArrayWithClass:MyModel.class json:json]` 不如 `+[MyModel yy_modelArrayWithJson:json]` 自然。 ```objective-c @interface NSArray (YYModel) /** Creates and returns an array from a json-array. This method is thread-safe. @param cls The instance's class...