选中某个单元格

  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;

原文地址:https://www.cnblogs.com/106dapeng/p/5578291.html