I have a collectionview where I'm trying to do 2 cells on each row. It looks like it's building the cells from my prototype cell and centering everything properly. Then it runs my sizeForItemAtIndexPath and makes the sizing correct (2 cells per row), but then all the labels are off center as it was laid it before.
I have been screwing with invalidateLayout and viewDidLayoutSubviews but nothing seems to be working. Any ideas how to force the cell to re-layout the labels after it has run sizeForItemAtIndexPath? Thanks in advance.
EDIT:
Here are two images.
This is the first image sizeForItemAtIndexPath is commented out, everything in the cell is formatted perfectly, but the spacing is off:
Here is the second, with the sizeForItemAtIndexPath making the collectionView have proper spacing. Here is where the alignment is messed up within the cell, not centered.