views:

35

answers:

1

Hi,

I'm trying to change the height of the cells in my TTTableViewController from the three20 library. I'm using TTTableRightImageItem and I want the height to be determined by the height of the image and not the fixed height.

Do I have to subclass TableCell? Is there a property I can just set?

Thanks

+1  A: 

You'll need to subclass.

Michael Grinich
Can you give me pointers on how I do that? I assume I just create a new class myTTTableViewController which inherits from TTTableViewController and then I should override some function which tells the height of the cell? How can I find out which function is that?
Noam
You can actually keep using the controller provided by Three20 (`TTTableViewController`). What I believe you want to do is have control over the high of the cell, which is computed by each `TTTableViewItemCell`. You'll also need to choose what to use for your `TTTableViewItem` and have them mapped together in your datasource using the `-tableView:cellClassForObject:`. Unfortunately this is fairly complicated and doesn't have any good documentation yet. It's on the list of articles to write for http://new.three20.com.
Michael Grinich