美文网首页
获取某一组的所有cell

获取某一组的所有cell

作者: 508e0be44880 | 来源:发表于2016-12-02 17:54 被阅读87次

    #pragma mark -获取某一组的所有cell

    -(NSArray*)cellsForTableView:(UITableView*)tableView section:(NSInteger)section

    {

    NSMutableArray*cells = [[NSMutableArrayalloc]init];

    NSIntegerrows =[tableViewnumberOfRowsInSection:section];

    for(introw =0; row < rows; row++) {

    NSIndexPath*indexPath = [NSIndexPathindexPathForRow:rowinSection:section];

    [cellsaddObject:[tableViewcellForRowAtIndexPath:indexPath]];

    }

    returncells;

    }

    相关文章

      网友评论

          本文标题:获取某一组的所有cell

          本文链接:https://www.haomeiwen.com/subject/bbjqmttx.html