I am using a TTListDataSource to populate a TTTableViewController.
This is the code I am using to populate the TTListDatSource items array:
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 the TTTableView is using, currently 2 lines height.
any ideas how can I do that?
I've tried using these properties in few parts of my code with no luck:
TTTableViewController.variableHeightRows = YES;
TTStyledText.setNeedsLayout;
TTStyledText sizeToFit;