首页 > 其他 > 详细

选中某个单元格

时间:2016-06-12 18:24:45      阅读:104      评论:0      收藏:0      [点我收藏+]

  NSArray *array = [self.tableVeiw visibleCells];//获取正在使用的 cell

    for (UITableViewCell  *cell in array) {

       UIButton *buton = (UIButton *)[cell viewWithTag:101];

        buton.selected = NO;

    }

    

    UITableViewCell *cell =  [tableView cellForRowAtIndexPath:indexPath];

    UIButton *buton = (UIButton *)[cell viewWithTag:101];

    buton.selected = YES;

选中某个单元格

原文:http://www.cnblogs.com/106dapeng/p/5578291.html

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