]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/ViewController.mm
Split PackageListController partially for CyteKit.
[cydia.git] / CyteKit / ViewController.mm
index 28c7c438ce0fd6b92f1e90ac2f29a9efbfe62daf..41e7ea9a5c53704c9cc3b100d98a6f8b492d5fd8 100644 (file)
     return nil;
 }
 
+- (UIViewController *) rootViewController {
+    UIViewController *base(self);
+    while ([base parentOrPresentingViewController] != nil)
+        base = [base parentOrPresentingViewController];
+    return base;
+}
+
 - (NSURL *) navigationURL {
     return nil;
 }