summaryrefslogtreecommitdiff
path: root/CyteKit/TabBarController.mm
diff options
context:
space:
mode:
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];