0
最新更新NSCollectionView NSCollectionView委託方法允許委託檢測項目的選擇與上選擇標題
- (NSSet<NSIndexPath *>*)collectionView:(NSCollectionView*)collectionView shouldSelectItemsAtIndexPaths:(NSSet<NSIndexPath*>*)indexPaths
和
- (void)collectionView:(NSCollectionView*)collectionView didSelectItemsAtIndexPaths:(NSSet<NSIndexPath*>*)indexPaths
,等等。
但是,據我所知,這些方法只檢測NSCollectionViewItem
對象的選擇,而不是任何當前的頁眉或頁腳視圖。
是否有任何委託方法來檢測頁眉和/或頁腳視圖的選擇?如果沒有,那麼實施這種檢測的最佳方法是什麼?