简体   繁体   English

动态更改表格视图单元格中自定义标签的值

[英]Dynamically change the value of custom label in a tableview cell

I am using a custom label in the tableview cell that I am using. 我在使用的tableview单元格中使用自定义标签。 I need to dynamically increase and decrease the height of the tableview cells(label) depending on certain parameters. 我需要根据某些参数动态增加和减少tableview单元格(标签)的高度。 How can I do this. 我怎样才能做到这一点。

try this link: 试试这个链接:

UItableviewcell Dynamic Height UItableviewcell动态高度

Implement 实行

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;

method and return the variable height for each row. 方法并返回每一行的可变高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM