|
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; } */ |
|
|