UITableview 中获取非选中的cell

实现效果如图:

在cell中有一个button,选中cell改变button的选择状态 yes,选中另外一个cell,别的cell中的button选择状态变成false。

 
//获取当前可显示的cell 的 IndexPath
for (NSIndexPath *ind in [tableView indexPathsForVisibleRows]) {
         AuthorizationCell *cell=(AuthorizationCell *)[tableView cellForRowAtIndexPath:ind];
        [cell.bt_radion setSelected:false];
    }
    
    AuthorizationCell *cell=(AuthorizationCell *)[tableView cellForRowAtIndexPath:indexPath];
    [cell.bt_radion setSelected:!cell.bt_radion.selected];
原文地址:https://www.cnblogs.com/niit-soft-518/p/4344171.html