parse を使用するのは初めてで、初心者です。
テーブルを作成し、配列のデータを行に表示します
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]);
}
}];
コードは機能しました。しかし、知りたいのは、オブジェクトを配列に入れる方法と、配列に行を入れる方法です。たとえば、行のすべての文字列: Name.
ありがとう