문제

I have NSMutableArray and a NSString. How to archive these two in to a NSData by using NSKeyedArchiver in IOS6, Xcode4.6

도움이 되었습니까?

해결책

Try this

// Convert it  to NSdata

    NSData *messageData1 = [NSKeyedArchiver archivedDataWithRootObject:message];
    NSData *messageData2 = [NSKeyedArchiver archivedDataWithRootObject:arr];  
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top