Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何使用NSKeyedArchiver将两个字符串归档到NSData中_Iphone_Ios6_Xcode4.6_Nskeyedarchiver - Fatal编程技术网

Iphone 如何使用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

我有一个NSMutableArray和一个NSString。 如何在IOS6、Xcode4.6中使用NSKeyedArchiver将这两个文件归档到NSData中

// Convert it  to NSdata

    NSData *messageData1 = [NSKeyedArchiver archivedDataWithRootObject:message];
    NSData *messageData2 = [NSKeyedArchiver archivedDataWithRootObject:arr];  

我能把这两个结果结合起来吗?制作数组和字符串的字典,然后存档。试试看:)