草庐IT

didDeselectRowAt

全部标签

ios - swift: tableview didDeselectRowAt 复选标记

当我使用searchController重新加载我的TableView时,我正确地看到了那些被选中的用户,因为我将它们添加到一个数组(utentiSelezionati)中并且我执行了检查。但是要取消选择它们,我必须点击两次,但我不明白为什么。好像就算选中了也是调用了didSelect方法。functableView(_tableView:UITableView,cellForRowAtindexPath:IndexPath)->UITableViewCell{letcell=tableView.dequeueReusableCell(withIdentifier:"UserTable