没有错误日志,这就是我所看到的。
我有一个动态原型 UICollectionViewCell,并在这里加载:
override func collectionView(collectionView: UICollectionView!, cellForItemAtIndexPath indexPath: NSIndexPath!) -> UICollectionViewCell! {
var cell: LeftMenuCollectionViewCell
cell = collectionView.dequeueReusableCellWithReuseIdentifier("xxx", forIndexPath: indexPath) as LeftMenuCollectionViewCell // <- at this line something goes wrong
return cell
}
我之前正在注册课程:
self.collectionView.registerClass(UICollectionViewCell.self, forCellWithReuseIdentifier: "xxx")
现在使用 iOS 8 beta 5