0
我使用的钥匙串,像这样的iOS删除钥匙扣价值
[keychain setValue:nil forKey:CFBridgingRelease(kSecAttrAccount)];
但是,我只看到这一点:
setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key acct.
像明智的,当我使用这个:
[keychain setNilValueForKey:CFBridgingRelease(kSecAttrAccount)];
我得到这个:
setNilValueForKey]: could not set nil as the value for the key acct.
我使用的是苹果的KeychainItemWrapper,我会怎么做这是否正确?
通常你需要删除的项目,你不能用'nil'值直接更新,'SecItemDelete(...)'方法将为你做这个工作而不会崩溃。 – holex 2014-12-01 16:17:01