2015-08-18 16:07:51.523 Example[16070:269647] the behavior of the UICollectionViewFlowLayout is not defined because: 2015-08-18 16:07:51.523
Example
I had a similar issue.
In my case, I had a collection view and when you tapped on one of the cells, a popover with a UITextField
opened, to edit the item. After that popover disappeared, the self.collectionView.contentInset.bottom
was set to 55 (originally 0).
To fix my issue, after the popover view disappears, I’m manually setting contentInset to UIEdgeInsetsZero
.
The original issue seems to be related to the contextual prediction bar that shows up on top of the keyboard. When the keyboard is hidden, the bar disappears, but the contentInset.bottom
value is not restored to the original value.
Since your issue seems to be related to the width and not to the height of the cell, check if any of the contentInset
or layout.sectionInset
values are the same as the one set by you.
I had the same issue. I fixed this by clearing my collection view of it's constraints, and resetting them in Storyboard.