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;
时间: 2024-10-27 08:05:40