diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2017-03-04 20:18:40 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2017-03-04 20:18:40 -0800 |
commit | 217e22f0f4f84e74a3649d5e292c283b0c468b7f (patch) | |
tree | 829acf2e2906067ced0604f8d77aeb72cda285eb /CyteKit/ViewController.mm | |
parent | 60bd32466fcc4830ee8ff1774cd2e8d5bf390f4a (diff) |
Move some code of Window/TabBarController to Cyte.
Diffstat (limited to 'CyteKit/ViewController.mm')
-rw-r--r-- | CyteKit/ViewController.mm | 7 |
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; } |