0

I have created a class called gameScore in Parse and added few columns to it as shown below.

var gameScore = PFObject(className:"GameScore")
gameScore["score"] = 1337
gameScore["playerName"] = "Sean Plott"
gameScore.saveInBackground()

Likewise, I have added 10 player names and their scores, now I want get all the player names. I mean I want to retrieve only playerName column.

Can anybody please tell me how to do this!!!``

1 Answer 1

2

Create a PFQuery for your GameScore and use selectKeys: to specify that only playerName is returned.

This does not change the maximum number of players that will be returned in any response...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.