简体   繁体   中英

I don't know how to save Login Information of user on iPhone

I am making app about google documents. but I don't know How to save Login Information

Document Folder ? Cache Folder ? Where save Login Information ?

The best option is to use the keychain.

There's example code at the Apple site or Buzz Anderson has some great code at his site

Alternatively you could use NSUserDefaults but that's less secure. The keychain is encrypted, user defaults are not (unless you encrypt before insertion but that's extra work)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM