]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/ViewController.mm
Ignore .dSYM folders I am suddenly ending up with.
[cydia.git] / CyteKit / ViewController.mm
index 52c925d3df3166fc0709237733cf904e0eefd5f0..41e7ea9a5c53704c9cc3b100d98a6f8b492d5fd8 100644 (file)
     return nil;
 }
 
+- (UIViewController *) rootViewController {
+    UIViewController *base(self);
+    while ([base parentOrPresentingViewController] != nil)
+        base = [base parentOrPresentingViewController];
+    return base;
+}
+
+- (NSURL *) navigationURL {
+    return nil;
+}
+
 @end
 
 @implementation CyteViewController {
     [super unloadData];
 }
 
-- (NSURL *) navigationURL {
-    return nil;
-}
-
 - (void) setPageColor:(UIColor *)color {
     if (color == nil)
         color = [UIColor groupTableViewBackgroundColor];