【发布时间】:2016-08-26 07:09:28
【问题描述】:
如何使用自定义单元格在UICollectionView 中生成椭圆形单元格。下面是我想要实现的图像。
不知道如何实现这一点,通过了几个链接但没有得到。 请指导。 谢谢
更新:我尝试的是
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
return CGSize(width: collectionView.frame.size.width/3.0 - 8, height: collectionView.frame.size.width/2.5[![enter image description here][2]][2] )
}
【问题讨论】:
-
那么你的问题到底是什么,只是物品的大小?
标签: ios iphone swift uicollectionview