获取cell (tableviewcell、collection

2022-11-30  本文已影响0人  iOS门三闫

获取cell (tableviewcell、collectionviewcell)

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];

ACEExpandableTextCell * cell = (ACEExpandableTextCell *)[self.tableView cellForRowAtIndexPath:indexPath];

NSIndexPath *indexPath = [NSIndexPath indexPathForItem:0 inSection:0];

TitleViewCell * cell = (TitleViewCell *)[self collectionView:collectionView cellForItemAtIndexPath:indexPath];//即为要得到的cell

上一篇 下一篇

猜你喜欢

热点阅读