You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NSData is how the keychain stores data (see Apple's documentation of kSecValueData). Moreover, conforming toNSCoding is pretty much a requirement for storing any object outside of CoreData.
We've written setString:forKey: and stringForKey: helper methods that make it easy to store passwords and other string values. Out of curiosity, what kind of values are you storing in the keychain?
That makes perfect sense. Thanks for taking your time to explain it. I'm storing a string and also an array of strings. So it's not really a problem to make it into NSData
Is there a specific reason why setObject only takes NSData?
The text was updated successfully, but these errors were encountered: