Tableview button selection wrong after search
问题 I have a UIButton in the UITableViewCell . When a UIButton is tapped, I'm saving the tapped button tag in the array. So when I search within the UITableView using the UISearchController , I'm getting the desired output, but the selected button is selected within the wrong cell. Pic 1 - Button selected and before search pic 2 - After the search In the pic 1, I have selected the button that belongs to "room 1", but after the search, as you can see in the pic 2, the output is correct, but the