Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone sCollectionView删除节_Iphone_Objective C_Ios_Sstoolkit - Fatal编程技术网

Iphone sCollectionView删除节

Iphone sCollectionView删除节,iphone,objective-c,ios,sstoolkit,Iphone,Objective C,Ios,Sstoolkit,我正在删除SSCollectionView中的一个部分,如下所示: [self.collectionView beginUpdates]; [self.collectionView deleteSections:[NSIndexSet indexSetWithIndex:0] withItemAnimation:SSCollectionViewItemAnimationFade]; [self.collectionView endUpdates]; 这正是它的文档所描述的。但是,我得到了以下错

我正在删除
SSCollectionView
中的一个部分,如下所示:

[self.collectionView beginUpdates];
[self.collectionView deleteSections:[NSIndexSet indexSetWithIndex:0] withItemAnimation:SSCollectionViewItemAnimationFade];
[self.collectionView endUpdates];
这正是它的文档所描述的。但是,我得到了以下错误:

***在-[SSCollectionViewTableView\u endCellAnimationsWithContext:],/SourceCache/UIKit\u Sim/UIKit-2372/UITableView.m:1054中断言失败


我现在做的有什么问题吗?这就是“正在更新”和“结束更新”块在iOS中与
UITableView
s和其他视图控制器的工作原理。

在错误日志中:它确实提到了
UITableView
。也许你把课程搞混了?检查父类是否一切正常,以及您是否在Interface Builder中指定了正确的类