CollectionView FlowLayout custom cell rendering issues

I have a collectionview with a custom flowlayout and a custom collectionview cell (no storyboards). The custom cell has a CAGradientLayer on a background view. When coming back from suspended state this layer is rendered incorrectly (see image: http://www. gakkie.nl/images/gradientlayerrendering.png *remove the space*). It should be the full width of the cell. I'm not sure if this is solvable in the custom cell class or in the collectionview viewcontroller. Both as text included.




Any help greatly appreciated!