问题描述
我需要创建一个iPhone应用程序...将与网站进行通信...因此它需要用户名和密码...现在我需要知道如何在iPhone中保存用户名和密码...我有已经使用过NSuserdefaults ...但是那并没有解决我的pblm....此外,我还需要还原视图...用户退出应用程序的位置...所以我要求您提供帮助吗?
I need to create an IPhone Application...Which will communicate with a website...so it requires username and password...Now I need to know how to save the username and password in iphone...I have already used NSuserdefaults...but that didnt solved my pblm....Also I need to restore the view...from where the user exits the application...So I request you to help me?
非常感谢您的支持,
山姆
推荐答案
对于将安全数据(用户名/密码)保存在纯文本文件(例如plist文件或NSUserDefaults)上,我有些偏执.
I am a bit paranoid about saving secure data (username/passwords) on plain text files such as plist files or NSUserDefaults.
Apple提供钥匙串服务来存储安全数据.它有点复杂,请查看文档 iPhone操作系统的钥匙串服务任务
Apple provides Keychain services to store secure data. It is slightly complicated, view the documentation Keychain Services Tasks for iPhone OS
他们还提供通用钥匙串应用探索.
这篇关于如何在iPhone中保存密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!