Strange error when adding items to prototype cells in storyboard-IB

前端 未结 7 1159
甜味超标
甜味超标 2020-12-13 13:33

I have quite a large project (~20 scenes). One of which is a TableViewController with a custom UITableViewController class. I have given the cell a reuse identifier, and add

7条回答
  •  抹茶落季
    2020-12-13 13:42

    Tag the label and you can reach the label anywhere in the viewcontroller like with viewWithTag from the table view.

        UILabel *destinationLabel = (UILabel *)[self.tableView viewWithTag:1];
    
    
        destinationLabel.text = @"Label Destaination";
    

提交回复
热议问题