0

I have an AS collection node, to my collectionFlowLayout object I gave:

layout.minimumLineSpacing = 8;
layout.minimumInteritemSpacing = 8;

When I need to show the header and when there's only one item in the collection node, that only item becomes center aligned, if no header or more than one items: it's ok. What can be the reason of such behaviour?

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

0

Maybe you did not setup itemSize:

layout.itemSize = CGSizeMake(width, height);
itsapple
  • 28
  • 5