NSArray *arrayCell = [tableView visibleCells];
for (WJLNewestTableViewCell *everyCell in arrayCell) {
if ([everyCell isEqual:cell]) {
cell.playImageView.hidden = !cell.playImageView.hidden;
} else {
everyCell.playImageView.hidden = YES;
}
}
王吉龙 09:24:18
/*
#pragma mark - 获取所有的cell(包括看不见,没滑动的时候下面看不见的)
-(NSArray *)cellsForTableView:(UITableView *)tableView
{
NSInteger sections = tableView.numberOfSections;
NSMutableArray *cells = [[NSMutableArray alloc] init];
for (int section = 0; section < sections; section++) {
NSInteger rows = [tableView numberOfRowsInSection:section];
for (int row = 0; row < rows; row++) {
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section];
[cells addObject:[tableView cellForRowAtIndexPath:indexPath]];
}
}
return cells;
}
*/
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。