I have a tableView in which each cell contains a button with different titles.
Actually I am passing a titles array to button.
cell.applyButton.setTitle(titleValues[indexPath.row], for: .normal)
Now I want to make only those buttons clickable which have title schedule. Please help.

Set the button's
.isEnabledproperty, based on the title: