我想调整 FSCalendar
的日期框架大小,它位于 collectionView
单元格内。
请帮助我更改 FSCalendar
中的 Collection View 单元格大小。
最佳答案
在添加 UICollectionViewDelegateFlowLayout 之后使用这个函数:
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
return CGSize(width: screenWidth, height: screenWidth)
}
关于ios - 更改 Collection View 单元格大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41845787/