TextLabel colour automatically changed when i Scroll UiTableView
问题 I changing textlabel color on didSelectRowAt but when I scroll UITableView it also effects in other textlabel also func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let cell = tableView.cellForRow(at: indexPath) as! TableViewCell if (cell.LBLIntrest.textColor == (UIColor.black)) { cell.LBLIntrest.textColor = Uicolor.blue } else { cell.LBLIntrest.textColor = Uicolor.black } } 回答1: First you have to create property to hold selected cell like below /* To hold