摘要:
需要在自定义类中实现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... 阅读全文