简体   繁体   English

我不知道如何在iPhone上保存用户的登录信息

[英]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.

相关问题 我不知道如何在iPhone中使用md5密码或如何启动 - I don't know how to md5 my password in iPhone ,or how to start iPhone代码泄漏,我也不知道为什么 - iPhone code leaks and I don't know why iPhone SDK:如何正确地将用户输入的信息保存到.plist或其他文件中? - iPhone SDK: How do I properly save user-inputted information into a .plist or other file? 如何检测用户选择不允许MKMapView for iphone - How to detect user selects Don't Allow for MKMapView for iphone 我想为iPhone开发一个文件浏览器应用,但我不知道从哪里开始 - I want to make a file browser app for iPhone, but I don't know where to start 我有堆栈跟踪信息,没有其他信息,也不知道出了什么问题! - I have a stack trace and no other information and don't know what is wrong! iPhone如何知道用户何时触摸屏幕但不移动? - iPhone how do I know when the user is touching the screen but not moving? iPhone - 我怎么知道我的用户要去哪里进入 UIWebView - iPhone - How may I know where my user is going to into a UIWebView iPhone Dev Objective-C - Object 被保留,我不知道在哪里 - iPhone Dev Objective-C - Object is being retained and I don't know where 如何解决错误“不知道如何构建任务'build:iphone:setup_xcode_project'” - how to resolve error “Don't know how to build task 'build:iphone:setup_xcode_project'”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM