iOSでは、すべてのテーブルビューのセルを通過しました

- (NSArrayの*)cellsForTableView:(のUITableView *)のtableView {

    NSInteger切片= tableView.numberOfSections。

    NSMutableArrayの*細胞= [[NSMutableArrayのALLOC] INIT]。

    用(INT部= 0;セクション<セクション、セクション++){

        NSInteger行= [numberOfRowsInSectionのtableView:セクション]。

        用(INT列= 0、行<行、行++){

            NSIndexPath * indexPath = [NSIndexPath indexPathForRow:行inSection:セクション]。

            [細胞のaddObject:[のtableView cellForRowAtIndexPath:indexPath]。

        }

    }

    細胞を返します。

}

 

何のテストがプールセルを多重化することはできませんがあります

公開された49元の記事 ウォン称賛7 ビュー30000 +

おすすめ

転載: blog.csdn.net/qq_29680975/article/details/100985953