shouldAutorotateToInterfaceOrientation not working for detail view
- by TheLearner
I am using Xcode's SplitView template as the base for my project and I only want to accept Landscape mode.
I have implemented the method in the RootViewController and DetailViewController:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
switch (interfaceOrientation)
{
case UIInterfaceOrientationLandscapeLeft:
return YES;
}
return NO;
}
However what happens is the app loads with in Landscape mode with the tableview on the left but the detail view is black / blank.
How do I get the detailview to load properly and do I need to implement this method is all view controllers or just the root one?