Skip to content

Commit f412ba8

Browse files
committedJan 8, 2013
Fixed infinite recursion on iOS 4
1 parent 3f8f982 commit f412ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎ViewDeck/IIViewDeckController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
919919
{
920920
_preRotationSize = self.referenceBounds.size;
921921
_preRotationCenterSize = self.centerView.bounds.size;
922-
_preRotationIsLandscape = UIInterfaceOrientationIsLandscape(self.interfaceOrientation);
922+
_preRotationIsLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
923923
_willAppearShouldArrangeViewsAfterRotation = interfaceOrientation;
924924

925925
// give other controllers a chance to act on it too

0 commit comments

Comments
 (0)
Please sign in to comment.