我正在使用TTListDataSource来填充TTTableViewController。Three20框架,如何更改默认行高TTTableView?
这是我使用的填充TTListDatSource项目数组代码:
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]];
我想改变TTTableView使用默认的行高度,目前2号线的高度。
任何想法我该怎么做?
我在没有运气的我的代码几部分使用这些属性的尝试:
TTTableViewController.variableHeightRows = YES;
TTStyledText.setNeedsLayout;
TTStyledText sizeToFit;
Three20在我的TTTableViewCell子类中似乎没有认出这个方法,因为它甚至没有调用它。你知道什么可能是错的吗? – 2011-04-27 10:19:46