X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/f8c9fd4c9a853ca14ac1d1fb123e2e6200879bb4..187cb9203a03e766172b266b8f99bd9b0fd0ba05:/CyteKit/TabBarController.mm diff --git a/CyteKit/TabBarController.mm b/CyteKit/TabBarController.mm index 7a4ead30..35a2bd0f 100644 --- a/CyteKit/TabBarController.mm +++ b/CyteKit/TabBarController.mm @@ -35,6 +35,19 @@ _H 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];