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

iOS

Update 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

Have you done the Build a self-destructing message app course yet? That should say.

thanks for the heads up. but i can't seem to find the video with the update section