/* Cydia - iPhone UIKit Front-End for Debian APT
- * Copyright (C) 2008-2013 Jay Freeman (saurik)
+ * Copyright (C) 2008-2014 Jay Freeman (saurik)
*/
/* GNU General Public License, Version 3 {{{ */
#include <Foundation/Foundation.h>
#include <UIKit/UIKit.h>
+#include "iPhonePrivate.h"
+
extern bool IsWildcat_;
@implementation UIViewController (Cydia)
return nil;
}
+- (NSUInteger) supportedInterfaceOrientations {
+ return IsWildcat_ ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait;
+}
+
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
- return IsWildcat_ || orientation == UIInterfaceOrientationPortrait;
+ return ([self supportedInterfaceOrientations] & 1 << orientation) != 0;
+}
+
+- (BOOL) shouldAutorotate {
+ return YES;
+}
+
+- (void) setPageColor:(UIColor *)color {
+ if (color == nil)
+ color = [UIColor groupTableViewBackgroundColor];
+ color_ = color;
}
@end