解归档通用代码

-(void)encodeWithCoder:(NSCoder *)aCoder
{
    unsigned int count = 0;

    Ivar *Ivars = class_copyIvarList([self class], &count);

    for (int i = 0; i
- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super init];

    if (self) {

        unsigned int count = 0;

        Ivar *Ivars = class_copyIvarList([self class], &count);
        
        for (int i = 0; i

你可能感兴趣的:(解归档通用代码)