美文网首页
获取cell (tableviewcell、collection

获取cell (tableviewcell、collection

作者: iOS门三闫 | 来源:发表于2022-11-30 10:37 被阅读0次

获取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

相关文章

网友评论

      本文标题:获取cell (tableviewcell、collection

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