I am using TTTableViewController class. I have added the UIView of height 100 to the Table cell initially. The height of UIView changes dynamically and I have to change the height of cell also. But height of the cell doesnt chnages. please remember I am ?Using Three 20. Thanks in advance for valuable response.
Asked
Active
Viewed 220 times
3 Answers
0
For TTTableViewCell
do it in didLoad or init method
self.variableHeightRows = YES;
and use the below function.
+ (CGFloat)tableView:(UITableView*)tableView rowHeightForObject:(id)object;
{
return 80; //value can be changed
}

Ajeet Pratap Maurya
- 4,244
- 3
- 28
- 46
-
@RaviNalawade if that answer worked for you then pls mark it as correct.It helps other people also who are having the same problem.thank you.. – Ajeet Pratap Maurya Dec 01 '11 at 15:16
0
Have you Enabled this while creating row Dynamically??
BOOL variableHeightRows = YES
You can refer this link, hope it may help you. :))
Or try this :-
-(CGFloat)tableView :(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
// return (the value for the row)
}
but for this you must implement its Delegate i.e. UITableViewDataSource.

mAc
- 2,434
- 2
- 22
- 39
-
-
I am using the TTTableView not the UITableView. Is the above method is applicable in this TTTableView? – Ravi Nalawade Dec 01 '11 at 11:03
-
follow this link it has the answer you need i think so http://stackoverflow.com/questions/5007271/three20-framework-how-to-change-default-row-height-tttableview – mAc Dec 01 '11 at 11:57
0
use the below delegate method to adjust table row height.
-(CGFloat)tableView :(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return 50; //the required table row height
}
-
I am using the TTTableView not the UITableView. Is the above method is applicable in this TTTableView? – Ravi Nalawade Dec 01 '11 at 11:02