开发者

How to customize UITableViewCell for string length

开发者 https://www.devze.com 2022-12-15 20:07 出处:网络
I have to fit strings within a table. The strings are of different lengths. The cell of the table should be sized accord开发者_JAVA百科ing to string length.

I have to fit strings within a table. The strings are of different lengths. The cell of the table should be sized accord开发者_JAVA百科ing to string length.

I am using sizeWithFont:constrainedToSize: . But I could not use it properly. Can any one please suggest a solution?


Use the delegate method tableView:heightForRowAtIndexPath: to change the table view row heights.

0

精彩评论

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

关注公众号