The app is set to only support landscape mode.
The custom UIViewController
has the following code:
- (void)viewDidLoad {
[super viewDidLoad];
MBMainViewController *mainViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"MBMainViewController"];
[self addChildViewController:mainViewController];
[self.view addSubview:mainViewController.view];
[mainViewController didMoveToParentViewController:self];
self.mainViewController = mainViewController;
}
When app is launched, the frame for the view of the child viewcontroller (mainViewController
) is still set to the dimension of a portrait.
Is there something I'm missing so the right frame size is set on the child viewcontroller's view?