我有一个大小为
的UICollectionView单元格func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
return CGSize(width: self.view.frame.width / 2 - 10,height: self.view.frame.width / 2 - 10)
但是在运行时
故事板
新!
滚动后视图很好
阵列开始 滚动前的视图
数组结束
再次开始数组 滚动后的视图
感谢。 我的手机出了什么问题?