开发者

TTTableViewCell height problem - Three20

I am trying to subclass TTTableViewCell in my Three20 app, and I would like to change the height of 开发者_如何学运维the cell. However, I am having major issues.

I am using self.variableHeightRows = YES; in the class which call my TTTableViewCell class.

Does anyone have any idea how to change the height of the cell? The doc for this is almost nil.

Many thanks, Brett


Override this method in your subclass of TTTableViewCell:

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


I have never used TTTableViewCell, however for a regular cell that is contained within a UITableView in the UITableViewDelegate you can implement the method

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜