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;
网友评论