码迷,mamicode.com
首页 > 其他好文 > 详细

UITableview 中获取非选中的cell

时间:2015-03-17 13:59:49      阅读:99      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!