keychainWrapper provides the mechanism for storing a NSString (like passwords).
Can I also store NSArray or NSDictionary in keychainWrapper?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
NSKeyedArchiverandNSKeyedUnarchiver, and if you have custom objects stored in the array of dictionary, make sure that class implements theNSCodingprotocol.You can then convert NSData to NSString using base64 encoding http://www.cocoawithlove.com/2009/06/base64-encoding-options-on-mac-and.html
for unarchiving it’s just going backwards,use get
NSDatafrom the base64NSStringand use the unarchiver