开发者

Y/N: UitableView Question

开发者 https://www.devze.com 2022-12-13 15:50 出处:网络
Y/N: Is it possi开发者_如何学Pythonble to set one cell inside of a uitableview that has multiple cells to have a dynamic height that changes depending on the value of text it holds?Yes.You can specify

Y/N: Is it possi开发者_如何学Pythonble to set one cell inside of a uitableview that has multiple cells to have a dynamic height that changes depending on the value of text it holds?


Yes. You can specify the height of a cell by implementing tableView:heightForRowAtIndexPath: in your UITableViewDelegate. You can get the row height using NSString's sizeWithFont:constrainedToSize:lineBreakMode: method.

0

精彩评论

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