有NSMutableArray
和一個NSString
。要使用NSKeyedArchiver
將兩個字符串歸置到一個NSData中?
我用的版本是IOS6,XCode4。6
// Convert it to NSdata
NSData *messageData1 = [NSKeyedArchiver archivedDataWithRootObject:message];
NSData *messageData2 = [NSKeyedArchiver archivedDataWithRootObject:arr];