pau-riquelme

Untitled

Dec 27th, 2017
1,008
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.22 KB | None | 0 0
  1. let query = PFQuery(className: "People")
  2.  
  3. query.getFirstObjectInBackground { (object, error) in
  4.     if error == nil, let object = object {
  5.         object["firstname"] = "Pedro"
  6.         object["age"] = 19
  7.         object.saveInBackground()
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment