]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/ViewController.mm
Move setModalPresentationStyle: (for consistency).
[cydia.git] / CyteKit / ViewController.mm
index fa90b3761105af50995c2f88005826494b29121a..78f2b264cb202247c84b3120f39aba61e22ef5ef 100644 (file)
@@ -1,5 +1,5 @@
 /* Cydia - iPhone UIKit Front-End for Debian APT
 /* Cydia - iPhone UIKit Front-End for Debian APT
- * Copyright (C) 2008-2012  Jay Freeman (saurik)
+ * Copyright (C) 2008-2014  Jay Freeman (saurik)
 */
 
 /* GNU General Public License, Version 3 {{{ */
 */
 
 /* GNU General Public License, Version 3 {{{ */
@@ -24,7 +24,7 @@
 #include <Foundation/Foundation.h>
 #include <UIKit/UIKit.h>
 
 #include <Foundation/Foundation.h>
 #include <UIKit/UIKit.h>
 
-extern bool IsWildcat_;
+#include "iPhonePrivate.h"
 
 @implementation UIViewController (Cydia)
 
 
 @implementation UIViewController (Cydia)
 
@@ -106,8 +106,12 @@ extern bool IsWildcat_;
     return nil;
 }
 
     return nil;
 }
 
-- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
-    return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;
+- (void) setPageColor:(UIColor *)color {
+    if (color == nil)
+        color = [UIColor groupTableViewBackgroundColor];
+    color_ = color;
 }
 
 }
 
+#include "InterfaceOrientation.h"
+
 @end
 @end