【发布时间】:2019-02-24 22:13:41
【问题描述】:
我试图让我的UICollectionView 的单元格填满整个宽度,但它看起来像这样:
我尝试过这样的事情:
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
return CGSize(width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.height+140)
}
但它什么也没做。提示?
【问题讨论】:
标签: ios swift xcode uicollectionview