1,获取要展示item的frame

2,调用展示方法

CGRect itemFrame = [collectionView layoutAttributesForItemAtIndexPath:indexPath].frame;

[collectionView scrollRectToVisible:itemFrame animated:YES];

相关文章:

  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2021-12-28
  • 2021-04-19
  • 2021-04-16
  • 2022-02-08
  • 2021-08-09
猜你喜欢
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案