Created
July 5, 2014 10:55
-
-
Save licvido/d2f624250dfc44d2f9dd to your computer and use it in GitHub Desktop.
SWIFT: Save and load local data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let prefs = NSUserDefaults.standardUserDefaults() | |
prefs.setObject("Hello World", forKey: "greeting") | |
let greeting = prefs.stringForKey("greeting") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment