jeudi 28 août 2014

Parse IOS Query - Display Results


Vote count:

0




I am trying to display data from a parse table. The class name is Account and the column I want to retrieve data from is called name. I keep getting an error of property name not found on object of type NSArray. I understand that you cannot pass a nsarray to an nsstring but how do i display this data correctly. Any help would be great.


Here is my code that does not work:



- (void)viewDidLoad
{
[super viewDidLoad];
PFQuery *query = [PFQuery queryWithClassName:@"Account"];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
self.test.text = objects.name;

}];

}


asked 22 secs ago







Parse IOS Query - Display Results

Aucun commentaire:

Enregistrer un commentaire