romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when rotate collectionViewController as contentController

Xedart opened this issue · comments

When rotate with opened side menu, there is an error with collectionView that's contentView.

Consider the following:

screenshot 2016-04-06 23 13 25

that's my collectionview with some items. Flow layout is applied, and items' width is equal to collection view width.
Thought it looks like this after rotation:
screenshot 2016-04-06 23 13 17

Have anybody faced this problem?

Ok I figured it out. The solution is to get some delay before reloading collection view in viewWillTransitionToSize method.