Array von parse.com in der Tabellenansicht anzeigen (iOS)

Ich möchte in meiner Tabellenansicht ein Array anzeigen, das sich in einer Datenbank auf parse.com befindet. Ich kann das erste Element im Array anzeigen, aber nicht den Rest.

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath object:(PFObject *)object {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if(cell==nil){
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
    }   
    _ListArray = [object objectForKey:@"content"];
    NSLog(@"OBJECT = %@",_ListArray);
    NSString *cellValue = [NSString stringWithFormat:@"%@", [_ListArray objectAtIndex:indexPath.row]];

    cell.textLabel.text = cellValue;

    if(refresh <counter)
    {
        NSString *br = @"<br>";
        List = [NSString stringWithFormat:@"%@%@%@", List, br, cell.textLabel.text];
        NSLog(@"%@",List);
        refresh ++;
    }       
    cell.accessoryType =UITableViewCellAccessoryDisclosureIndicator;

    return cell;
}

Wenn ich versuche zu benutzen:

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return [_ListArray count];
}

Ich bekomme nichts auf den Tisch.

Update bearbeiten:

habe das self.ListArray entfernt und gehe mit _ListArray.

in der h datei:

NSMutableArray *ListArray;
...
@property (retain, atomic) NSMutableArray *ListArray;

und dann in m Datei:

@synthesize ListArray = _ListArray;

hinsichtlich der:

self.ListArray = [object objectForKey:@"content"];

Das Objekt ist das PFO-Objekt.

Ich habe queryForTable, wo ich die Daten aus analysieren.

- (PFQuery *)queryForTable {

    PFQuery *query = [PFQuery queryWithClassName:@"List"];
    [query whereKey:@"user" equalTo:[PFUser currentUser]]; // user
    [query whereKey:@"objectId" equalTo:[theListID objectId]]; // the specific list
    counter =[query countObjects];
    NSLog(@"%d",counter);

    // If Pull To Refresh is enabled, query against the network by default.
    if (self.pullToRefreshEnabled) {
        query.cachePolicy = kPFCachePolicyNetworkOnly;
    }

    // If no objects are loaded in memory, we look to the cache first to fill the table
    // and then subsequently do a query against the network.
    if ([self.objects count] == 0) {
        query.cachePolicy = kPFCachePolicyCacheThenNetwork;
    }

    [query orderByDescending:@"createdAt"];

    return query;

}

Und zum objectForKey: @ "content"]; content ist der Name der Spalte in meiner Klasse beim Parsen, also muss ich sagen, welches Objekt aus der Klasse ich erhalten möchte, und das ist die Array-Spalte mit dem Namen "content".

Die Protokollierung (wenn das NSLog im Array aktiv ist).

Inköpslista[7856:12e03] Warning: A long-running Parse operation is being executed on the main thread. 
 Break on warnParseOperationOnMainThread() to debug.
2013-10-21 14:23:31.008 Inköpslista[7856:12e03] 1
2013-10-21 14:23:31.017 Inköpslista[7856:12e03] OBJECT = (
    "Br\U00f6d",
    Anka,
    Boll,
    Sko
)
2013-10-21 14:23:31.017 Inköpslista[7856:12e03] <html><body><br>Bröd
2013-10-21 14:23:31.545 Inköpslista[7856:12e03] OBJECT = (
    "Br\U00f6d",
    Anka,
    Boll,
    Sko
) 

Antworten auf die Frage(1)

Ihre Antwort auf die Frage