REFrostedViewController icon indicating copy to clipboard operation
REFrostedViewController copied to clipboard

loading wrong screen size

Open chipbk10 opened this issue 11 years ago • 2 comments

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.

chipbk10 avatar May 13 '14 08:05 chipbk10

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.

tabrez0481 avatar Apr 17 '15 06:04 tabrez0481

Loading menuViewController inside a NavigationViewController did trick for me.

tabrez0481 avatar Apr 17 '15 07:04 tabrez0481