3
collectionView
の中の特定のindexPath
を選択してスクロールしたいと思います。私はその機能を発見しましたが、それらを組み合わせることは不可能です:iOS:collectionView内の特定のセルを選択してスクロールする方法を教えてください。
collectionView.selectItem(at: indexPath, animated: true, scrollPosition: UICollectionViewScrollPosition.centeredVertically)
collectionView.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: true)
collectionView.scrollToItem(at: indexPath, at: .centeredVertically, animated: true)
ありがとうございます。
パーフェクトを設定渡すことができます、どうもありがとうございました。 – Claudio