diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-24 01:46:34 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2013-12-24 01:46:34 -0800 |
commit | 81628115a7ac1ddd54abee383786a8bf9a0d6585 (patch) | |
tree | 81191e8e43047e9a5d59fc4a8c0ef2e6d180ab55 /iPhonePrivate.h | |
parent | 0909f943e1d9755df5c07b4fbd1c54f4428a7227 (diff) |
Fix iOS 7 autorotate (need setRootViewController).
Diffstat (limited to 'iPhonePrivate.h')
-rw-r--r-- | iPhonePrivate.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 6f4e706..37e73d6 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -418,6 +418,17 @@ extern float const UIScrollViewDecelerationRateNormal; - (WebFrame *) contentFrame; @end +typedef enum { + UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait), + UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft), + UIInterfaceOrientationMaskLandscapeRight = (1 << UIInterfaceOrientationLandscapeRight), + UIInterfaceOrientationMaskPortraitUpsideDown = (1 << UIInterfaceOrientationPortraitUpsideDown), + UIInterfaceOrientationMaskLandscape = (UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight), + UIInterfaceOrientationMaskAll = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | + UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskPortraitUpsideDown), + UIInterfaceOrientationMaskAllButUpsideDown = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight), +} UIInterfaceOrientationMask; + // extern *; {{{ extern CFStringRef const kGSDisplayIdentifiersCapability; extern float const UIWebViewGrowsAndShrinksToFitHeight; |