I have NSMutableArray and a NSString. How to archive these two in to a NSData by using NSKeyedArchiver in IOS6, Xcode4.6
Asked
Active
Viewed 105 times
1 Answers
1
Try this
// Convert it to NSdata
NSData *messageData1 = [NSKeyedArchiver archivedDataWithRootObject:message];
NSData *messageData2 = [NSKeyedArchiver archivedDataWithRootObject:arr];

Pratik B
- 1,599
- 1
- 15
- 32
-
can I combine these two results. – Vineesh TP May 13 '13 at 11:12
-
make dictionary of array and string and than archive it. try :) – Pratik B May 13 '13 at 11:20