X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/63755c48fd5fe4f31775e0f38857314879b93f39..9ae8969431fe2ece82dbc1ae952f06d8818b8642:/CyteKit/TabBarController.mm diff --git a/CyteKit/TabBarController.mm b/CyteKit/TabBarController.mm index 27a8000f..35a2bd0f 100644 --- a/CyteKit/TabBarController.mm +++ b/CyteKit/TabBarController.mm @@ -24,12 +24,29 @@ #include "CyteKit/TabBarController.h" #include "iPhonePrivate.h" +#include @implementation UITabBarController (Cydia) @end -@implementation CyteTabBarController +@implementation CyteTabBarController { + _transient UIViewController *transient_; + _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];