So, it turns out that there are no settings for this. This is what I came across:
I set the contents of my title view to align at the bottom of the title view itself, so it seems to have the same visible height even if I make the title taller than its contents (automatic layout makes it really easy).
Then I set the height of the header depending on the index of the section in this deletive method of UICollectionViewFlowLayout:
#define kHeaderHeight 42 #define kInterSectionMargin 8 - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section { if (section == 0) { return CGSizeMake(0, kHeaderHeight); } return CGSizeMake(0, kHeaderHeight + kInterSectionMargin); }
Now there is a small space between sections, but not until the first section.
Dorian roy
source share