Reflect icon indicating copy to clipboard operation
Reflect copied to clipboard

Reflection, Dict2Model, Model2Dict, Archive

Results 14 Reflect issues
Sort by recently updated
recently updated
newest added

对于项目名包含中文 比如 项目名:项目 其中有个类 class Person:Nsobject{} 那么你得到的ClassName:_xTC项目.Person (可能不准确) 这样就不能通过类名得到 AnyClass

`2017-07-04 14:17:52.193738+0800 Reflect[4302:1322488] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.' *** First throw call stack:...

当我请求的数据中有null时就会报错,感觉好像 !=nil 这个判断不适用null。。。

你好,发现一个bug,归档跟解归档会崩。 例子 SubReflectAClass : Reflect { number : String = "" bClass : SubReflectBClass = SubReflectBClass() } SubReflectBClass : Reflect { ID : String = "" name : String =...

有支持swift3.0的版本吗 我这迁移后,直接闪退 什么日志都看不到 ,头疼

GitHub changed the way Markdown headings are parsed, so this change fixes it. See [bryant1410/readmesfix](https://github.com/bryant1410/readmesfix) for more information. Tackles bryant1410/readmesfix#1

支持swift 3.0的版本什么时候出来啊

Reflect+Convert.swift中的返回类型[String : Any]改成[String : AnyObject],因为Alamofire网络请求使用的字典是[String : AnyObject]

实际开发中有可能后台返回的json数据字段对应的值是,对应到ios的字典里面就是一个NSNull的实例,这里做了一个判断,如果字典里的值是一个NSNull的实例,会转成一个nil值。不会在把这个null值赋值给模型的属性(如果赋值swift的基础类型会引起crash)。