I'm trying to resize a UILabel frame in a custom UICollectionViewCell. I added the label to the cell in Storyboards. The frame gets adjusted in -layoutSubviews. The frame is getting resized when layoutSubviews is called, but it isn't displaying the resize when the cell is displayed.
Here's what I'm assuming based on what I've seen...
It seems as though calling -layoutSubviews forces a re-layout on every cell in the CollectionView, which hurts performance.
With auto-layout on, you simply can't resize the label.
If I delete the label in Storyboards, create the it programmatically, and set the frame when the cell is called in
-cellForRowAtIndexPath, it works like a charm.
Are my assumptions above correct, and if so, is there an alternate to -layoutSubviews better suited for CollectionViews.