0
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCellFixed *cell = (UITableViewCellFixed *)[tableView cellForRowAtIndexPath:indexPath];
第二行(即:函数声明后的第一行)正在无限期地重复。我不知道为什么。这条线为什么无限期地重复?
我在运行脚本时遇到了堆栈超载,并且当我在该行上放置断点并在同一方法中放置了后续行时,此行只是不断重复,断点从未移动到下一行。
我不知道这是为什么,但这是我第一次尝试子类UITextViewCell,所以我假设我做错了什么?
感谢 汤姆
哦正确的......:p * embarassed *那么,我将如何获取单元格textLabel和detailTextLabel对象? – 2010-09-14 13:45:02
您应该从模型中获取这些标签的内容,而不是从单元本身获取。 – tobiasbayer 2010-09-14 13:48:47
在-tableView:cellForRowAtIndexPath: – Simon 2010-09-14 13:49:51