X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/323746d39bfa3830194974658233d0b45809b060..f8c9fd4c9a853ca14ac1d1fb123e2e6200879bb4:/CyteKit/ViewController.mm diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index a0365956..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-2013 Jay Freeman (saurik) + * Copyright (C) 2008-2015 Jay Freeman (saurik) */ /* GNU General Public License, Version 3 {{{ */ @@ -19,12 +19,15 @@ **/ /* }}} */ -#include "CyteKit/ViewController.h" +#include "CyteKit/UCPlatform.h" #include #include -extern bool IsWildcat_; +#include "CyteKit/ViewController.h" + +#include "iPhonePrivate.h" +#include @implementation UIViewController (Cydia) @@ -51,7 +54,11 @@ extern bool IsWildcat_; @end -@implementation CyteViewController +@implementation CyteViewController { + _transient id delegate_; + BOOL loaded_; + _H color_; +} - (void) setDelegate:(id)delegate { delegate_ = delegate; @@ -106,8 +113,16 @@ extern bool IsWildcat_; return nil; } -- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { - return IsWildcat_ || orientation == UIInterfaceOrientationPortrait; +- (void) setPageColor:(UIColor *)color { + if (color == nil) + color = [UIColor groupTableViewBackgroundColor]; + color_ = color; } +- (UIColor *) pageColor { + return color_; +} + +#include "InterfaceOrientation.h" + @end