it's all start from a lot of warnings about the width of collectionView cells, That was written to console every time I press home button.
I thought it's something with size of the cells and tried to fix it. Only after some testing, I notice that viewDidLayoutView is called with wrong view.bounds, and that make the collectionView cell bigger(in width) than collection view.
For now, my fix is to check if app is on background state and ignore viewDidLayoutView.
- why it's happen only in iPad and not on iPhone ?
- it's whirred that only now I saw this happening. it's something new in iOS ?
- what is the right way to handle this ? I don't use auto-layout
- its calling with wrong bounds and I don't want to calculate all cells frames just for the user to return to the same orientation.
- I feel like I'm missing something very basic here OR there is some change on iOS that I'm not aware.