summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-12-24 01:46:34 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2013-12-24 01:46:34 -0800
commit81628115a7ac1ddd54abee383786a8bf9a0d6585 (patch)
tree81191e8e43047e9a5d59fc4a8c0ef2e6d180ab55 /CyteKit
parent0909f943e1d9755df5c07b4fbd1c54f4428a7227 (diff)
Fix iOS 7 autorotate (need setRootViewController).
Diffstat (limited to 'CyteKit')
-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];