选中某个单元格

  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;

posted on 2016-06-12 17:33  芳馨幽兰  阅读(176)  评论(0编辑  收藏  举报

导航