我用魔杖在返回heightForRowAtIndexPath时知道单元格的内容。在这个函数中,我如何获得单元格对象?如何获取tableView中的单元格对象:(UITableView *)tableView heightForRowAtIndexPath函数?
- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
}
如果我试试这个
[tableView cellForRowAtIndexPath:indexPath]
失败和无限循环熄灭。
有什么想法?
这是错误的,你可以在这种情况下发送'tableView:cellForRowWithIndexPath'。 @user ...只是将它发送给错误的对象。 – XJones 2011-04-12 17:57:10