この問題は以前に投稿されたことを知っており、修正に従ってコードを修正しましたが、セルの詳細はまだ取得されておらず、本文のみが表示されています。ここに私のコードがあります:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell==nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];//It's well initialized
}
cell.textLabel.text=[myArray objectAtIndex:indexPath.row];
cell.detailTextLabel.text=@"All the stores";
return cell;
}
私が見たいと思っているのは、テキストと詳細テキストです。しかし、私は本文しか見ません。事前にサンクス。