summaryrefslogtreecommitdiff
path: root/CyteKit/ViewController.mm
diff options
context:
space:
mode:
Diffstat (limited to 'CyteKit/ViewController.mm')
-rw-r--r--CyteKit/ViewController.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/CyteKit/ViewController.mm b/CyteKit/ViewController.mm
index 28c7c43..41e7ea9 100644
--- a/CyteKit/ViewController.mm
+++ b/CyteKit/ViewController.mm
@@ -52,6 +52,13 @@
return nil;
}
+- (UIViewController *) rootViewController {
+ UIViewController *base(self);
+ while ([base parentOrPresentingViewController] != nil)
+ base = [base parentOrPresentingViewController];
+ return base;
+}
+
- (NSURL *) navigationURL {
return nil;
}