开发者

How do I resize a cell in a tableview with grouped cells

开发者 https://www.devze.com 2023-01-19 07:46 出处:网络
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).

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消