Alex Rivera | Logout

Store NSDictionary in keychain

Asked 2012-03-30T18:41:04.153
20

It is possible to store a NSDictionary in the iPhone keychain, using KeychainItemWrapper (or without)? If it's not possible, have you another solution?

Edit
Report

1 Answer

2

You can store anything, you just need to serialize it.

NSData *data = [NSKeyedArchiver archivedDataWithRootObject:dictionary];

You should be able to store that data in the keychain.

answered 2012-03-30T18:49:40.143

Your Answer