Ios PDKeychainBindingsController:如何重置keychain中的项?
我正在使用PDKeychainBindingsController,但它没有方法将所有KeyChainItems重置为Apple的KeychainItemWrapper,有人能告诉我如何执行相同的任务吗Ios PDKeychainBindingsController:如何重置keychain中的项?,ios,objective-c,keychain,Ios,Objective C,Keychain,我正在使用PDKeychainBindingsController,但它没有方法将所有KeyChainItems重置为Apple的KeychainItemWrapper,有人能告诉我如何执行相同的任务吗 谢谢尝试创建新方法: - (void)resetKeychainItems { bindings = [PDKeychainBindings sharedKeychainBindings]; [bindings removeObjectForKey:@"..."];
谢谢尝试创建新方法:
- (void)resetKeychainItems {
bindings = [PDKeychainBindings sharedKeychainBindings];
[bindings removeObjectForKey:@"..."];
[bindings removeObjectForKey:@"..."];
...
}
是的,此方法可以删除密钥的值,但我需要一种方法来删除应用程序的所有密钥链数据。此外,我们需要显式删除它们。卸载应用程序时不会删除这些数据。为什么会这样?