我只是想在游乐场中显示一个CollectionView来快速尝试想法。然而,这已经过了一个小时+事情。我收到了错误:
2017-03-17 17:28:37.862 uikitTest [88414:10270872] *断言失败 - [UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:],/ BuildRoot / Library / Cache / com.apple。 XBS /来源/ UIKit_Sim / UIKit的-3600.6.21 / UICollectionView.m:4971 2017-03-17 17:28:37.866 uikitTest [88414:10270872] * 由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序,原因:'无法使类型的视图出列:标识为test1的UICollectionElementKindCell - 必须注册一个nib或标识符的类或连接故事板中的原型单元格' ***首先抛出调用堆栈:
我尝试将视图设置为PlaygroundPage,并创建UIWindow。我不清楚如何使用Playground中的ViewControllers,甚至是否是根本问题以及它是否与let sliceReducers = {
first : firstReducer,
second : secondReducer
};
const initialRootReducer = combineReducers(sliceReducers);
const store = createStore(initialRootReducer);
// sometime later
sliceReducers = {
...sliceReducers,
third : thirdReducer
}
const newRootReducer = combineReducers(sliceReducers);
store.replaceReducer(newRootReducer);
异常相关联。
我的游乐场如下:
could not dequeue