如何在iOS中为应用程序设置密码 [英] How to set a password for application in iOS

查看:899
本文介绍了如何在iOS中为应用程序设置密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在iOS中开发一个应用程序,我想提供一个密码选项..用户可以输入密码并进行设置,稍后当他打开应用程序时,应首先要求输入密码,

I am developing an application in iOS where I want to provide a password option..where user can enter a password and set it,and later when he opens the app,it should first ask for password to enter,

那么我们可以实现这个吗?

So can we implement this?

欢迎任何想法,建议......

Any ideas ,suggestions are welcomed.....

问候
Ranjit

Regards Ranjit

推荐答案

将密码保存到钥匙串。如果您关心安全性,请不要将其存储在任何其他地方。您可以使用SFHFKeychainUtils轻松完成此操作。

Save the password to the keychain. Don't store it anywhere else, if you care about security. You could use SFHFKeychainUtils to do this easily.

这篇关于如何在iOS中为应用程序设置密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆