*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PeopleData initWithCoder:]: unrecognized selector sent to instance 0x6888c10'
我会尽量让它简单。这条线如何:
NSData* objData = [NSKeyedArchiver archivedDataWithRootObject:[newStorage yourStaticArray]];
知道在哪个类中查找 NSCode?现在我收到上面的错误,因为它在错误的位置搜索 NSCode。在类PeopleData
中只有属性。