2013-05-08 61 views

回答

1

我会用方法tableView:heightForRowAtIndexPath:和其他像素引擎的样式来改变高度行。你也应该注意UITableViewCell和UITableView行高的IB。我认为这个帖子也可能有用:Styling with Engine。它有一个有趣的例子(包括源代码)。

快乐编码!

1

你需要实现你的UITableViewDelegate的

-(CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*) indexPath 
{ 
    if ([expandedPaths containsObject:indexPath]) { 
     return 80; 
    } else { 
     return 44; 
    } 
} 

方法。

相关问题