NSCoding协议声明了两个方法:

-(void)encodeWithCoder:(NSCoder *)aCoder 是将对象写入到文件中

-(id)initwithCoder:(NSCoder *)aDecoder 是将文件中数据读入到对象中

-(id)copyWithZone:(NSZone *)Zone 是将对象复制方法

posted on 2012-05-25 13:29  chivas  阅读(272)  评论(0编辑  收藏  举报