CharlinFeng / Reflect

Reflection, Dict2Model, Model2Dict, Archive
MIT License
307 stars 66 forks source link

swift2 #2

Closed kingslay closed 9 years ago

nnianhouss commented 9 years ago

Xcode正式版来了,可以更新支持swift2.0了,支持pod了 模型需要继承自Relfect基类?为什么不能跟MJExtension样?

CharlinFeng commented 9 years ago

@nnianhou- 模型需要继承自Relfect基类?

因为OC类本身就继承自NSObject,在Swift中,类是可能没有父类的。这个是必然要有一个基准类