Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #26 from cvee/master

[MGSplitViewController shouldAutorotateToInterfaceOrientation:] overrides autorotate settings defined in the detail view controller.
  • Loading branch information...
commit d53f8de543857ed6f3c1d1a55add89742387e215 2 parents 580747f + 0d2d9cb
@mattgemmell authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Classes/MGSplitViewController.m
View
5 Classes/MGSplitViewController.m
@@ -165,6 +165,11 @@ - (void)dealloc
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
+ if (self.detailViewController)
+ {
+ return [self.detailViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
+ }
+
return YES;
}
Please sign in to comment.
Something went wrong with that request. Please try again.