0

I want to retrieve an array from Parse.com. The array is saved in the user class in Parse, and I would like to retrieve only the array linked to the current user.

I know this code is not valid, but I think it illustrates exactly what I want:

NSArray *array = [[PFUser currentUser] arrayForKey:@"arrayKey"];

I know this code snippet might seem stupid for some of you, but I hope you get what I'm trying to do.

1 Answer 1

2
PFUser* currentUser = [PFUser currentUser];
NSArray* myArray = currentUser[@"arrayKey"];
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.