Brett
Brett

Reputation: 12007

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

Upvotes: 1

Views: 471

Answers (2)

Andrew Flynn
Andrew Flynn

Reputation: 1516

Override this method in your subclass of TTTableViewCell:

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

Upvotes: 1

Jesse Naugher
Jesse Naugher

Reputation: 9820

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

Upvotes: 0

Related Questions