0

NSMutableArrayの(カウントではない) をセクション内の行数として返すことは可能ですか?

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    NSLog(@"number of rows in section: %@",[arrayofNombre objectAtIndex:section]);//it prints the right value
    return [arrayofNombre objectAtIndex:section];
}

アプリケーションがクラッシュするだけで、定数値 (たとえば、2 を返す) を入力すると、アプリケーションは実行されますが、期待どおりの結果が得られません。私は確かに何かが欠けています。助けてくれてありがとう。

4

3 に答える 3