Skip to content

Commit

Permalink
Incorporate fix from mattgemmell#68
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbrethorst committed Nov 22, 2013
1 parent ed72bcf commit 06de4c8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Classes/MGSplitViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,18 @@ - (void)dealloc

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if (self.detailViewController)
{
if (self.masterViewController && self.detailViewController) {
return [self.masterViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation] && [self.detailViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
else if (self.masterViewController) {
return [self.masterViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
else if (self.detailViewController) {
return [self.detailViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}

return YES;
else {
return YES;
}
}


Expand Down

0 comments on commit 06de4c8

Please sign in to comment.