如何使用自定义单元格在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] )
}