I got a tableview cell inside that i have image view , label and a ui button , i need to change the button title text and background colour on click . But when i try to do
Set the title and the background color properties of the button in tableview's didSelectRowAtIndexPath delegate
didSelectRowAtIndexPath
cell.button.setTitle("title", for: .normal) cell.button.backgroundColor = .darkGray