[英]I don't know how to save Login Information of user on iPhone
I am making app about google documents. 我正在制作有关google文档的应用。 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. 另外,您可以使用NSUserDefaults,但是不太安全。 The keychain is encrypted, user defaults are not (unless you encrypt before insertion but that's extra work)
钥匙串是加密的,用户默认密码不是(除非您在插入之前进行了加密,但这是额外的工作)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.