REFrostedViewController
REFrostedViewController copied to clipboard
loading wrong screen size
The issue is in the following case:
- All UIViewController are fixed to landscape, no rotation. The rootViewController will load wrong screen size of homeViewController and MenuViewController.
How to solve it:
- In REFrostedViewController, move the code below from ViewDidLoad to ViewWillAppear:
[self re_displayController:self.contentViewController frame:self.view.frame];
Reason:
In ViewDidLoad, the view was still transitioning, its width: 768, and height: 1024. In ViewWillAppear, the size of all view are handled properly in landscape mode.
I'm facing same issue.. And moving this code [self re_displayController:self.contentViewController frame:self.view.frame]; to viewWillAppear is not helping, it still shows wrong menusize for very first time.
Loading menuViewController inside a NavigationViewController did trick for me.