Closed imzyf closed 6 years ago
尺寸
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize {
switch section {
case 1:
return CGSize(width: collectionView.bounds.width, height: 31)
case 2:
return CGSize(width: collectionView.bounds.width, height: 26)
default:
return CGSize.zero
}
}
合并
注册
遍历