对不起,也许是个愚蠢的问题,我是个初学者。在iOS的一些测试代码中,我看到:
UITableViewCell *cell = cellsArray[indexPath.section][indexPath.row];我怎样才能说出这句话的正确部分呢?谢谢你帮忙!
发布于 2013-08-14 08:47:19
这完全相当于:
[[cellsArray objectAtIndex:indexPath.section] objectAtIndex:indexPath.row];cellsArray是一个数组,一个二维数组.它的计数是表视图中的节数。每个数组表示一个节,并包含此节的单元格。这样,您就可以按其行访问每个单元格。
发布于 2013-08-14 08:48:19
你必须制作二维数组:
UITableViewCell *cell = [[cellsArray objectAtIndex:indexPath.section] objectAtIndex:indexPath.row];https://stackoverflow.com/questions/18226932
复制相似问题