标签: ios iphone swift xcode uicollectionview
我试图集中查看集合视图的特定项,所以我正在使用委托方法,但未将其称为
func indexPathForPreferredFocusedView(in collectionView: UICollectionView) -> IndexPath? { let indexpath = IndexPath.init(row: 7 , section: 0) return indexpath }