关于UICollectionViewDelegate我正在使用didHighlightItemAtIndexPath以及didSelectItemAtIndexPathdidSelectItemAtIndexPath按预期工作。也就是说,当我点击Remote时,这段代码就会运行。问题是didHighlightItemAtIndexPath也在点击时运行,顾名思义这个block只会在高亮时运行。我错过了什么吗?各自的block:funccollectionView(collectionView:UICollectionView,didHighlightItemAtIndexPathind