打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
获取当前看到的所有cell,有系统方法,可以做到很多事
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;
}
 
*/


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
UITableView设置为静态的单元格。 是否有可能隐藏的cell编程?
iOS 实现多个可变 cell 复杂界面的制作
UITableView的基本使用一
如何让 UITableView 的 headerView跟随 cell一起滚动
js循环table获取input里的属性值
UITableview 单选和重用
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服