📜  快速清除用户默认值 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:57.840000             🧑  作者: Mango

代码示例1
let domain = Bundle.main.bundleIdentifier!
UserDefaults.standard.removePersistentDomain(forName: domain)
UserDefaults.standard.synchronize()
print(Array(UserDefaults.standard.dictionaryRepresentation().keys).count)