テーブルビューに配列の配列を入力しましたが、セルラベルとしてテキストを表示する方法がわかりません。
配列内の配列の「0」の位置にある文字列をテキストラベルとして使用したいと思います。
ありがとう。
これが私のコードです:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
}
// Set up the cell...
cell.textLabel.text = [excersizeArray objectAtIndex:indexPath.row];
return cell;
}