0

我尝试使用 cell.contentview.bounds 但它给出的错误是它不可分配的东西。有人知道怎么做这个吗?

4

2 回答 2

2

使用tableView delegate方法:

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{

     return 80; //returns height for the tableview cell    

  }
于 2013-11-08T12:55:54.337 回答
1

你只需要 1 行代码....

[tableview setRowHeight:100];
于 2013-11-08T12:57:25.130 回答