Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Mugunthan Balakrishnan
1,167 PointsUpdate multiple objects with Parse on iOS ?
How can you update multiple objects to Parse in a single query?
The code below is for a single entry.
How can I go about updating multiple values, which I get from an array?
var query = PFQuery(className:"GameScore") query.getObjectInBackgroundWithId("xWMyZEGZ") { (gameScore: PFObject?, error: NSError?) -> Void in if error != nil { println(error) } else if let gameScore = gameScore { gameScore["cheatMode"] = true gameScore["score"] = 1338 gameScore.saveInBackground() } }
1 Answer
Caleb Kleveter
Treehouse Moderator 37,862 PointsHave you done the Build a self-destructing message app course yet? That should say.
Mugunthan Balakrishnan
1,167 PointsMugunthan Balakrishnan
1,167 Pointsthanks for the heads up. but i can't seem to find the video with the update section