- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我知道保存用户名/密码使用下面的 KeychainItemWrapper 类方法,但我想在 KeychainItemWrapper 中添加一个额外的 [ipTF 文本]。怎么做?
KeychainItemWrapper *keychainItem = [[KeychainItemWrapper alloc] initWithIdentifier:@"Login" accessGroup:nil];
[keychainItem setObject:[useridTF text] forKey:(__bridge id)(kSecAttrAccount)];
[keychainItem setObject:[passTF text] forKey:(__bridge id)(kSecValueData)];
[keychainItem setObject:[ipTF text] forKey:@"ip"];//not success!
最佳答案
我认为不可能在 key 链项中创建任意键/值对。
钥匙串(keychain)服务引用
This section lists all the keys that specify keychain item attributes. The description of each item indicates what the possible values are for that key.
可能的 key 列表由 kSecClass
确定。您可以在 Keychain Services References 中找到选项列表及其说明。在下面描述如何确定 key 集的引述下。
Key constant used to set the item class value in a search dictionary.
CFTypeRef kSecClass;ConstantskSecClassDictionary key whose value is the item's class code. Possible values for this key are listed in “ Item Class Value Constants.”
关于iphone - 关于 ios KeychainItemWrapper 存储用户名/密码而不是对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15765560/
我正在使用 ARCified KeychainItemWrapper并且无法将一个钥匙串(keychain)项目中的数据迁移到另一个项目。基本上我正在尝试将内容从应用程序特定项目复制到共享项目。为简洁
我刚刚尝试使用 Apple 提供的 KeychainItemWrapper,但每次都出现链接错误: Undefined symbols for architecture i386: "_OBJC_CL
我刚刚在我的应用程序中发现了一个有趣的问题。在应用程序中,我将用户的用户名和密码保存到钥匙串(keychain)中。 keychainWrapper = [[KeychainItemWrapper a
当我尝试将项目添加到钥匙串(keychain)时,我在 iOS 10 上发现了这个崩溃 *** 断言失败 -[KeychainItemWrapper write Keychain] 在 iOS 9.3
我使用以下代码从 iPhone 钥匙串(keychain)检索登录凭据: KeychainItemWrapper *wrapper = [[KeychainItemWrapper alloc] ini
我使用 KeychainItemWrapper 来存储登录信息,我使用 kSecAttrAccount 和 kSecValueData 来存储电子邮件和密码。除了这两个我想存储更多的 bool 值来决
我正在使用 KeychainItemWrapper 来保存登录凭据,这个功能对我来说工作正常,但我在使用这些存储的凭据时遇到了几个问题。 我的第一个 View 总是登录 View ;第一次在文本字段中
我使用 Apple 的 KeychainItemWrapper 将密码存储在钥匙串(keychain)上。在某些时候,如果我尝试使用 获取尚未设置的密码 KeychainItemWrapper*
很长一段时间以来,我一直在使用 KeychainItemWrapper 的 ARC 版本成功地读写私有(private)钥匙串(keychain)项目。 我现在正在努力将我的 iOS 应用程序转换为使
我正在使用 Apple 示例代码中的 KeyChainItemWrapper 来存储用户密码以进行身份验证,但是当我调用它来设置密码时: [keychain setObject:passwo
Apple 在其 GenericKeyChain sample code 中提供了 KeyChainItemWrapper 类. SO 上有一个 ARC'ed 解决方案,我正在尝试遵循:wrapper
在 Apple 提供的 KeychainItemWrapper 类出现很多问题之后,我可以让它工作,但后来我对我的代码做了一些事情,看起来现在它处于不稳定状态。 实际上我有原始的 KeychainIt
我正在使用 KeychainItemWrapper对于我的应用程序,使用以下代码行 KeychainItemWrapper *currentUser = [[KeychainItemWrapper a
我想在我的应用程序中保存密码和 ID。我下载了 [KeychainItemWrapper][1] https://developer.apple.com/library/ios/samplecode/
我必须将 NSArray(包含 NSString 和 BOOL)存储到 KeychainItemWrapper 中,以便在另一个 ViewController 中重新使用它,并在应用程序关闭时将其保留
我知道保存用户名/密码使用下面的 KeychainItemWrapper 类方法,但我想在 KeychainItemWrapper 中添加一个额外的 [ipTF 文本]。怎么做? KeychainIt
当我从 XCode 运行我的应用程序时它没有崩溃,但我创建了一个 IPA 以与 TestFlight 一起使用,并且它在用户尝试登录应用程序后崩溃。我相信这是由于使用了此处定义的 keychainIt
我想在 KeychainItemWrapper 中存储 bool 值,如何存储? 我试过这段代码,但它给了我错误。 [keychain setObject:YES forKey:(__bridge
我正在使用 KeychainItemWrapper 的 ARCified 版本,可在 github 获得,而且我无法让它同时存储电子邮件和密码。 KeychainItemWrapper *keycha
我正在编写一个应用程序,它使用“KeychainItemWrapper”类以安全的方式存储登录凭据。下面是管理 Keychain 对象的代码: - (IBAction)saveFields { wra
我是一名优秀的程序员,十分优秀!