【发布时间】:2014-08-06 12:16:49
【问题描述】:
没有错误日志,仅此而已。
我有一个动态原型 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
【问题讨论】:
标签: ios swift uicollectionview uicollectionviewcell uicollectionreusableview