TTTableViewCell高度问题 - Three20

问题描述:

我想在我的Three20应用程序中继承TTTableViewCell,我想改变单元格的高度。但是,我有重大问题。TTTableViewCell高度问题 - Three20

我正在使用self.variableHeightRows = YES;在调用我的TTTableViewCell类的类中。

有没有人有任何想法如何改变单元格的高度?这个文件几乎为零。

非常感谢, 布雷特

我从来没有使用TTTableViewCell,但是对于包含一个UITableView中的一项正常细胞中的UITableViewDelegate就可以实现该方法

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

+0

不幸的是它是不同的为TTTableViewCell :( – Brett 2010-07-09 21:34:17

+0

ahh是的我想,因为我已经看过api有点......但希望能给你一些想法,以什么可能会改变它嘿。祝你好运。 – 2010-07-09 21:44:42

重写此方法在您的TTTableViewCell的子类中:

+ (CGFloat)tableView:(UITableView*)tableView rowHeightForObject:(id)object { 
    return 0; // Your value here 
}