摘要: 需要在自定义类中实现NSCode的两个方法,同时的声明实现协议。- (id)initWithCoder:(NSCoder *)coder{ if (self = [super init]) { _name = [coder decodeObjectForKey:@"name"]; _signatureURL = [coder decodeObjectForKey:@"signatureURL"]; } return self;}-(void)encodeWithCoder:(NSCoder *)coder{ [coder encodeObje... 阅读全文
posted @ 2013-07-03 16:15 Story Of My Life 阅读(284) 评论(0) 推荐(0) 编辑