0

You can convert an integer to NSString or an array to NSData and insert them into the iOS KeyChain.

My question is: Is that it? Or is there a direct way to insert a double, float or a boolean?

Spartacus9
  • 164
  • 2
  • 18

1 Answers1

1

You can store primitive types in form of NSNumber and save them to keychain. It has methods like: numberWithBool:, numberWithInteger:, numberWithFloat:.

Here and here are examples of storing BOOL in keychain.

Community
  • 1
  • 1
kamil3
  • 1,232
  • 1
  • 14
  • 19