Created
May 30, 2015 14:37
-
-
Save yuyutata/644186dec0b25b195a21 to your computer and use it in GitHub Desktop.
Parse_test
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 movie = PFObject(className: "Movie") | |
movie["Name"] = "Gone Firl" | |
movie["Year"] = 2014 | |
movie["rating"] = 4 | |
movie.saveInBackgroundWithBlock { (success: Bool, error: NSError?) -> Void in | |
if success { | |
println("Object has been saved.") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment