I am using a TTListDataSource to populate a TTTableViewController.
This is the code I'm using to populate an array of TTListDatSource elements:
NSString *text = [NSString stringWithFormat:@"<b>%@</b><br/>%@", someObject.title, someObject.text];
TTStyledText *styledText = [TTStyledText textFromXHTML:text lineBreaks:YES URLs:YES];
[items addObject:[TTTableStyledTextItem itemWithText:styledText]];
I would like to change the default row height used by TTTableView, currently 2 row height.
any ideas how i can do this?
I tried using these properties in several parts of my code with no luck:
TTTableViewController.variableHeightRows = YES;
TTStyledText.setNeedsLayout;
TTStyledText sizeToFit;
source
share