如何编辑使用 dequeueReusableCellWithIdentifier 后在新单元格中自动创建的文本标签

How to edit textlabel created automatically in a new cell after using dequeueReusableCellWithIdentifier

标识符为 "home" 的单元格有 textlabelimageview。我想在使用函数 dequeueReusableCellWithIdentifier.

后形成的新创建的原型单元格中编辑标签的内容

只需使用标签属性区分您想要的标签如下。

1) 将不同单元格中标签的tag设置为1(或者你喜欢的任何数字)。

2) 获取cell后使用:

UILabel *myLabel = (UILabel *)[cell viewWithTag:1];
myLabel.text = @"Whatever I like";