Answers for "store data in userdefaults in swift"

0

how to fmake sure that data is save in userdefault

if let appDomain = Bundle.main.bundleIdentifier {
UserDefaults.standard.removePersistentDomain(forName: appDomain)
 }
Posted by: Guest on December-03-2020
0

how to fmake sure that data is save in userdefault

let name = "John Doe"
UserDefaults.standard.set(name, forKey: "name")
Posted by: Guest on December-03-2020

Code answers related to "store data in userdefaults in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language