0
這是我第一次使用parse,而且我是初學者。Pfquery ... object to array ..要標籤
我建立了一個表,我示出了在排我的陣列的數據
myArray= [NSMutableArray arrayWithObjects:@"Pasquale", @"Mario", nil];
cell.label1.text = [myArray的objectAtIndex:indexPath.row];
現在我想從解析類獲取數據,我寫道:
PFQuery *query = [PFQuery queryWithClassName:@"Dispositivi"];
[query whereKey:@"NomeDispositivo" equalTo:@"Franco"];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
if (!error) {
// The find succeeded.
NSLog(@"Successfully retrieved %d scores.", objects.count);
// Do something with the found objects
for (PFObject *object in objects) {
NSLog(@"%@", object.objectId);
}
} else {
// Log details of the failure
NSLog(@"Error: %@ %@", error, [error userInfo]);
}
}];
的代碼工作。但我想知道:我如何將對象放入數組中......並且可以在數組中放入一行。例如每一行的String:Name。
感謝