Skip to content

Instantly share code, notes, and snippets.

@yuyutata
Created May 30, 2015 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyutata/644186dec0b25b195a21 to your computer and use it in GitHub Desktop.
Save yuyutata/644186dec0b25b195a21 to your computer and use it in GitHub Desktop.
Parse_test
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