summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CyteKit/ViewController.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm
index 80afb8e..b40ac6d 100644
--- a/CyteKit/ViewController.mm
+++ b/CyteKit/ViewController.mm
@@ -108,14 +108,14 @@ extern bool IsWildcat_;
return nil;
}
-- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
- return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;
-}
-
- (NSUInteger) supportedInterfaceOrientations {
return IsWildcat_ ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait;
}
+- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
+ return ([self supportedInterfaceOrientations] & 1 << orientation) != 0;
+}
+
- (BOOL) shouldAutorotate {
return YES;
}