I have a custom Tableview cell in swift, and a label in that cell.
I want to change the label when selecting a cell.
How can I reference my custom UITableviewCell label in didSelectRowAtIndexPath
In Objective-C, I would use the following to refer to my custom cell in didSelectRowAtIndexPath :
MPSurveyTableViewCell *cell = (MPSurveyTableViewCell *)[tableViewcellForRowAtIndexPath:indexPath]; cell.customLabel.TextColor = [UIColor redColor];
What do I need to do quickly to achieve the same result?
ios uitableview swift didselectrowatindexpath custom-cell
user3110353
source share