-2

これは、2 つの文字列を含む nsarray のログです。

GROUPSFORDISPLAY (
"Serie A",
"Serie B"

そして、これはまさに私がtableviewcellsに表示したいものですが、代わりにアプリがクラッシュしています。私が使用しているコードは次のとおりです。

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath  *)indexPath object:(PFObject *)object {
    static NSString *CellIdentifier = @"Cell";

    PFTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[PFTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
    }



    NSString *series = [_seriesForDisplay objectAtIndex:indexPath.row];
    cell.textLabel.text = series;

ありがとう。

4

1 に答える 1