【问题标题】:Using iOS Keychain Services to store additional values使用 iOS Keychain Services 存储附加值
【发布时间】:2013-10-10 22:55:43
【问题描述】:

按照这个简单的例子http://iosdevelopertips.com/core-services/using-keychain-to-store-username-and-password.html

我看到您使用 kSecAttrAccount 设置要存储的用户名,使用 kSecValueData 设置密码。对于我的应用程序,我还想存储一个类似于 iOS 密码锁定屏幕的四位数密码。我没有很多运气找到可以存储附加值的地方。

【问题讨论】:

    标签: ios keychain keychainitemwrapper


    【解决方案1】:

    一种选择是创建具有不同 ID 的第二个 KeychainItemWrapper 实例。使用 kSecValueData 值作为您的密码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-10
      • 2012-08-24
      • 1970-01-01
      • 2013-07-07
      • 2012-04-11
      • 2012-11-07
      • 2012-05-19
      • 1970-01-01
      相关资源
      最近更新 更多