UICollectionView changes the content offset when rotated

I have a subclass UICollectionViewControllerbuilt into another view controller. It seems that no matter what I do, the collection view shifts my frame up 128 pixels each time I rotate the device to landscape. I disabled the "Custom scroll insert" in both the parent view and the collection view controller (child).

What am I missing? Where should I look for the source of this mysterious frame modification? I myself am from ideas.

+4
source share

Source: https://habr.com/ru/post/1548106/


All Articles