X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/40ac17f95458c9eaf684a11223db0fc00e198eb0..f8c9fd4c9a853ca14ac1d1fb123e2e6200879bb4:/CyteKit/ViewController.mm?ds=sidebyside diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index b40ac6de..52c925d3 100644 --- a/CyteKit/ViewController.mm +++ b/CyteKit/ViewController.mm @@ -1,5 +1,5 @@ /* Cydia - iPhone UIKit Front-End for Debian APT - * Copyright (C) 2008-2014 Jay Freeman (saurik) + * Copyright (C) 2008-2015 Jay Freeman (saurik) */ /* GNU General Public License, Version 3 {{{ */ @@ -19,14 +19,15 @@ **/ /* }}} */ -#include "CyteKit/ViewController.h" +#include "CyteKit/UCPlatform.h" #include #include -#include "iPhonePrivate.h" +#include "CyteKit/ViewController.h" -extern bool IsWildcat_; +#include "iPhonePrivate.h" +#include @implementation UIViewController (Cydia) @@ -53,7 +54,11 @@ extern bool IsWildcat_; @end -@implementation CyteViewController +@implementation CyteViewController { + _transient id delegate_; + BOOL loaded_; + _H color_; +} - (void) setDelegate:(id)delegate { delegate_ = delegate; @@ -108,22 +113,16 @@ extern bool IsWildcat_; return nil; } -- (NSUInteger) supportedInterfaceOrientations { - return IsWildcat_ ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait; -} - -- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return ([self supportedInterfaceOrientations] & 1 << orientation) != 0; -} - -- (BOOL) shouldAutorotate { - return YES; -} - - (void) setPageColor:(UIColor *)color { if (color == nil) color = [UIColor groupTableViewBackgroundColor]; color_ = color; } +- (UIColor *) pageColor { + return color_; +} + +#include "InterfaceOrientation.h" + @end