2013-08-28 97 views

回答

0

你可以簡單地用UICollectionView這個實例方法檢查:

NSArray *indexPaths = [self.collectionView indexPathsForVisibleItems]; 

您可以比較第一個與您的數據源中的第一個項目,最後一個與最後一個項目。

0

這很容易確定。只需檢查集合的數據源是否包含比集合中可見對象的數量多的對象:

if (myDatasouceArray.count > myCollectionView.visibleCells.count) { 
    // There are invisible cells 
} 
相關問題