Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 NSMutableArray 和一个 NSString。如何在 IOS6、Xcode4.6 中使用 NSKeyedArchiver 将这两个归档到 NSData
试试这个
// Convert it to NSdata NSData *messageData1 = [NSKeyedArchiver archivedDataWithRootObject:message]; NSData *messageData2 = [NSKeyedArchiver archivedDataWithRootObject:arr];