标签:
实现效果如图:
在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];
标签:
原文地址:http://www.cnblogs.com/niit-soft-518/p/4344171.html