应用崩溃并提供以下错误消息 由于未捕获的异常而终止应用
'NSInternalInconsistencyException',
reason: '-[UICollectionViewController loadView]
loaded the "RecipeCollectionViewController" nib but didn't get a UICollectionView.
答案 0 :(得分:1)
尝试在断点上设置:
[self.collectionView registerClass:[ImageCell class] forCellWithReuseIdentifier:@"MyCell"];
我猜你的loadView(你的意思是viewDidLoad?)方法没有被调用,所以这个类永远不会在collectionView中注册。