Skip to content

Commit

Permalink
Some final cleanup for split view orientation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sptramer committed Jul 19, 2010
1 parent 7928ce4 commit 866e5f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iphone/Classes/TiSplitViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ -(id)initWithRootController:(TiRootViewController *)rootController
leftNav.navigationBarHidden = YES;
rightNav.navigationBarHidden = YES;

[self enforceOrientationModesFromWindow:split_];
// In order for the split view to render correctly, we have to enforce the window's orientation modes
// before setting up the view controllers. Very finnicky about when the containing mystery views
// are positioned!
lastOrientation = [[UIDevice currentDevice] orientation];
[self enforceOrientationModesFromWindow:(TiWindowProxy*)split_];

self.viewControllers = [NSArray arrayWithObjects:leftNav,rightNav,nil];

Expand Down

0 comments on commit 866e5f3

Please sign in to comment.