summaryrefslogtreecommitdiff
path: root/CyteKit/TabBarController.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-02-15 10:29:44 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2017-02-15 10:29:44 -0800
commit7ccc1484ab74ebf5797820bdd24edccfd42aaa50 (patch)
tree6bf6278957d2ff267d8685fb863c4d4da61e4056 /CyteKit/TabBarController.mm
parentf8c9fd4c9a853ca14ac1d1fb123e2e6200879bb4 (diff)
Move some of our clearly shared code into CyteKit.
Diffstat (limited to 'CyteKit/TabBarController.mm')
-rw-r--r--CyteKit/TabBarController.mm13
1 files changed, 13 insertions, 0 deletions
diff --git a/CyteKit/TabBarController.mm b/CyteKit/TabBarController.mm
index 7a4ead3..35a2bd0 100644
--- a/CyteKit/TabBarController.mm
+++ b/CyteKit/TabBarController.mm
@@ -35,6 +35,19 @@
_H<UIViewController> remembered_;
}
+- (NSArray *) navigationURLCollection {
+ NSMutableArray *items([NSMutableArray array]);
+
+ // XXX: Should this deal with transient view controllers?
+ for (id navigation in [self viewControllers]) {
+ NSArray *stack = [navigation performSelector:@selector(navigationURLCollection)];
+ if (stack != nil)
+ [items addObject:stack];
+ }
+
+ return items;
+}
+
- (void) didReceiveMemoryWarning {
[super didReceiveMemoryWarning];