Ios 使用ReuseIdentifier崩溃退出队列ReuseAbleCellWithReuseIdentifier崩溃';无法将类型为“”的视图出列;UICollectionElementKindCell';轮换

Ios 使用ReuseIdentifier崩溃退出队列ReuseAbleCellWithReuseIdentifier崩溃';无法将类型为“”的视图出列;UICollectionElementKindCell';轮换,ios,objective-c,uicollectionviewcell,Ios,Objective C,Uicollectionviewcell,我用的是原型电池。但我只在旋转时得到以下错误。请帮我解决这个问题 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“无法将具有标识符单元格的UICollectionElementKindCell类型的视图出列”-必须为标识符注册nib或类,或连接情节提要中的原型单元格” 我使用的是原型单元,单元标识符是正确的。我只是在轮换时才撞车 - (UICollectionViewCell *)collectionView:(UICollection

我用的是原型电池。但我只在旋转时得到以下错误。请帮我解决这个问题

由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:
“无法将具有标识符单元格的UICollectionElementKindCell类型的视图出列”
-必须为标识符注册nib或类,或连接情节提要中的原型单元格”

我使用的是原型单元,单元标识符是正确的。我只是在轮换时才撞车

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
                          cellForItemAtIndexPath:(NSIndexPath *)indexPath {
  if (_currentSelectedIndex == kFPSearchSegmentTypeOthers) {
    if ((self.searchProductRecipesOrOthersArray &&
      indexPath.item < self.searchProductRecipesOrOthersArray.count)) {
       FPSearchRecipesOthersCollectionViewCell *cell =
         [collectionView dequeueReusableCellWithReuseIdentifier:
         kFPSearchRecipesOther‌​sCollectionViewCellI‌​dentifier
         forIndexPath:indexPath];
    }
  }
} 
-(UICollectionViewCell*)collectionView:(UICollectionView*)collectionView
cellForItemAtIndexPath:(NSIndexPath*)indexPath{
如果(_currentSelectedIndex==kFPSearchSegmentTypeOthers){
如果((self.searchProductRecipes或其他搜索)&&
indexath.item
在纵向模式下滚动tableView是否正常?是。我找不到任何问题。只有在旋转时才会发生此崩溃如果您使用自动布局,请正确检查约束。这是我的代码FPProductCollectionViewCell=(FPProductCollectionViewCell)[collectionView dequeueReusableCellWithReuseIdentifier:KFPPPProductCollectionViewCell for indexPath:IndexXPath];你能为你的问题发布一些相关的代码吗?在什么时候你的应用程序崩溃了?