X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/6fa0bb60da6b661c2aafc03f11b842ee7136a9bb..f8c9fd4c9a853ca14ac1d1fb123e2e6200879bb4:/CyteKit/ViewController.mm diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index 80afb8e1..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; } -- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return IsWildcat_ || orientation == UIInterfaceOrientationPortrait; -} - -- (NSUInteger) supportedInterfaceOrientations { - return IsWildcat_ ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait; -} - -- (BOOL) shouldAutorotate { - return YES; -} - - (void) setPageColor:(UIColor *)color { if (color == nil) color = [UIColor groupTableViewBackgroundColor]; color_ = color; } +- (UIColor *) pageColor { + return color_; +} + +#include "InterfaceOrientation.h" + @end