Inferis/ViewDeck — pull request #235 by kevbotheone (2013-01-08 20:43:04+00:00)
Title: Fixed infinite recursion on iOS 4 

I solved this issue by assigning the **_preRotationIsLandscape** variable in the **shouldAutorotateToInterfaceOrientation** method with:
````_preRotationIsLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);````

This is working fine on iOS 4.3, 5.0, & 6.0.