首页 > 其他 > 详细

UITableview 中获取非选中的cell

时间:2015-03-17 13:59:08      阅读:387      评论:0      收藏:0      [点我收藏+]

技术分享

 

实现效果如图:

在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];

 

UITableview 中获取非选中的cell

原文:http://www.cnblogs.com/niit-soft-518/p/4344171.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!