I've set some user defaults using let userDefaults = UserDefaults.standard, and when I'm retrieving them, I can use any of these:
let userDefaults = UserDefaults.standard jobTextField.text = userDefaults.object(forKey: "job") as? String
OR I can use
let userDefaults = UserDefaults.standard jobTextField.text = userDefaults.value(forKey: "job") as? String
Which in what case this will has noa difference.? It'd be great to know when I can'tcan NOT use one of them.
Thanks a lot :)