CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

YHAutoCoding 1.0.0

YHAutoCoding 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Aug 2015

Maintained by jiisd.



  • By
  • 郑亚恒

利用运行时原理一句话实现对象所有成员变量的归档解档!!

使用方式

1、往 Xcode 中拖入文件夹 YHAutoCoding

2、在需要归档解档的类中引入头文件

#import "YHAutoCoding.h"

3、实现如下方法即可

/** 一句话实现对象自动归档解档 */
yh_autoCoding

/** 添加忽略归档的变量 */
- (NSArray *)ignoredMemberNames {
    return @[@"_zs_balance"];
}

icon