开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜