summaryrefslogtreecommitdiff
path: root/CyteKit/ViewController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'CyteKit/ViewController.mm')
-rw-r--r--CyteKit/ViewController.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm
index df2ba61..edd87ca 100644
--- a/CyteKit/ViewController.mm
+++ b/CyteKit/ViewController.mm
@@ -112,6 +112,14 @@ extern bool IsWildcat_;
return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;
}
+- (NSUInteger) supportedInterfaceOrientations {
+ return IsWildcat_ ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait;
+}
+
+- (BOOL) shouldAutorotate {
+ return YES;
+}
+
- (void) setPageColor:(UIColor *)color {
if (color == nil) {
color = [UIColor groupTableViewBackgroundColor];