X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/4c66fad9b489e2bda236a1a46c23c64cb774ea05..252f30db1bdb676fa6b5bdc3a664541582c78b3a:/CyteKit/ViewController.mm diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm index ae7539c5..41e7ea9a 100644 --- a/CyteKit/ViewController.mm +++ b/CyteKit/ViewController.mm @@ -19,12 +19,15 @@ **/ /* }}} */ -#include "CyteKit/ViewController.h" +#include "CyteKit/UCPlatform.h" #include #include +#include "CyteKit/ViewController.h" + #include "iPhonePrivate.h" +#include @implementation UIViewController (Cydia) @@ -49,9 +52,24 @@ return nil; } +- (UIViewController *) rootViewController { + UIViewController *base(self); + while ([base parentOrPresentingViewController] != nil) + base = [base parentOrPresentingViewController]; + return base; +} + +- (NSURL *) navigationURL { + return nil; +} + @end -@implementation CyteViewController +@implementation CyteViewController { + _transient id delegate_; + BOOL loaded_; + _H color_; +} - (void) setDelegate:(id)delegate { delegate_ = delegate; @@ -102,16 +120,16 @@ [super unloadData]; } -- (NSURL *) navigationURL { - return nil; -} - - (void) setPageColor:(UIColor *)color { if (color == nil) color = [UIColor groupTableViewBackgroundColor]; color_ = color; } +- (UIColor *) pageColor { + return color_; +} + #include "InterfaceOrientation.h" @end