NSCoding协议声明了两个方法:
-(void)encodeWithCoder:(NSCoder *)aCoder 是将对象写入到文件中
-(id)initwithCoder:(NSCoder *)aDecoder 是将文件中数据读入到对象中
-(id)copyWithZone:(NSZone *)Zone 是将对象复制方法
NSCoding协议声明了两个方法:
-(void)encodeWithCoder:(NSCoder *)aCoder 是将对象写入到文件中
-(id)initwithCoder:(NSCoder *)aDecoder 是将文件中数据读入到对象中
-(id)copyWithZone:(NSZone *)Zone 是将对象复制方法
转载于:https://www.cnblogs.com/chivas/archive/2012/05/25/2517887.html