UserDefaults setter and getter

Thomas Mak wrote at 2021-04-18.

#ios

// set
UserDefaults.standard.set("anything", forKey: "yourKey")

// get
UserDefaults.standard.value(forKey: "yourKey")

Comments

no comments yet.