swift keychain

后星河
2023-12-01

import KeychainSwift

let keychain = KeychainSwift()

keychain.set("frank", forKey: "uuid")

//读取

 let keychain = KeychainSwift()

//keychain.accessGroup = "ngt.aiFactory" 这句话不能要

let userName = keychain.get("uuid")

print("uuid:"+(userName ?? "-1"))

 类似资料:

相关阅读

相关文章

相关问答