I am using a grouped tableview and need to resize 1 cell where the enclosed cell.detailTextLab开发者_高级运维el has exceeded the size of the cell (i.e. about 3 lines worth).
Is there any easy way for the cell to auto-size itself to it's contents or otherwise, how do I change the size of that particular cell?
The UITableViewDelegate
has a method called tableView:heightForRowAtIndexPath:
. Just have it return the desired height for each row.
精彩评论