2012-11-10 110 views
0

我刪除部分SSCollectionView如下:SSCollectionView刪除部分

[self.collectionView beginUpdates]; 
[self.collectionView deleteSections:[NSIndexSet indexSetWithIndex:0] withItemAnimation:SSCollectionViewItemAnimationFade]; 
[self.collectionView endUpdates]; 

這正是因爲它的文檔描述。然而,我發現了以下錯誤:

*** Assertion failure in -[SSCollectionViewTableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-2372/UITableView.m:1054

什麼是錯的我在做什麼?這幾乎是更新和結束更新塊如何與iOS中的UITableView和其他視圖控制器配合使用。

回答

0

在你的錯誤日誌中:它提到了一個UITableView。也許你把你的課混在一起了?檢查一下你的父類是否正常,並且你已經在Interface Builder中分配了正確的類。