Top "Userdefaults" questions

How can I use UserDefaults in Swift?

How can I use UserDefaults to save/retrieve strings, booleans and other data in Swift?

ios swift nsuserdefaults userdefaults
Sharing data between an iOS 8 share extension and main app

Recently, I've been making a simple iOS 8 share extension to understand how the system works. As Apple states in its …

ios swift ios-app-extension userdefaults
Sharing UserDefaults between extensions

Creating a Today widget and I am using UserDefaults(suiteName:) to persist some data. In the main application I am …

swift ios-app-extension today-extension userdefaults ios-app-group
Cannot set non-property-list object in UserDefaults

I have a simple function in which I save an object to user defaults for the purpose of loading it …

swift3 userdefaults
How do I check if userDefault is empty?

I'm trying to deny access to a certain view controller if the userDefault is empty, but the code doesn't seem …

swift userdefaults
Saving time in UserDefaults

I'm working on a little game. When the user has a game going and shuts down the game, the app …

swift date foundation userdefaults