Iphone 如何使用NSKeyedArchiver将两个字符串归档到NSData中
我有一个NSMutableArray和一个NSString。 如何在IOS6、Xcode4.6中使用NSKeyedArchiver将这两个文件归档到NSData中Iphone 如何使用NSKeyedArchiver将两个字符串归档到NSData中,iphone,ios6,xcode4.6,nskeyedarchiver,Iphone,Ios6,Xcode4.6,Nskeyedarchiver,我有一个NSMutableArray和一个NSString。 如何在IOS6、Xcode4.6中使用NSKeyedArchiver将这两个文件归档到NSData中 // Convert it to NSdata NSData *messageData1 = [NSKeyedArchiver archivedDataWithRootObject:message]; NSData *messageData2 = [NSKeyedArchiver archivedDataWithR
// Convert it to NSdata
NSData *messageData1 = [NSKeyedArchiver archivedDataWithRootObject:message];
NSData *messageData2 = [NSKeyedArchiver archivedDataWithRootObject:arr];
我能把这两个结果结合起来吗?制作数组和字符串的字典,然后存档。试试看:)