From 81628115a7ac1ddd54abee383786a8bf9a0d6585 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 24 Dec 2013 01:46:34 -0800 Subject: Fix iOS 7 autorotate (need setRootViewController). --- CyteKit/ViewController.mm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CyteKit') 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]; -- cgit v1.2.3