Access custom label property at didSelectRowAtIndexPath

后端 未结 2 1403
日久生厌
日久生厌 2021-02-09 15:12

I have a UILabel for each cell at cellForRowAtIndexPath.

UILabel *cellLabel = [[UILabel alloc] initWithFrame:frame];
cellLabel.text = myString;

2条回答
  •  情歌与酒
    2021-02-09 16:06

    Can you post the code that you assign the cellLabel to the cell? Did you do something like this: cell.textLabel = cellLabel?

    Look for UITableViewCell for more details

提交回复
热议问题