CYNavigationController *page([[self viewControllers] objectAtIndex:(count - i - 1)]);
[page reloadData];
}
+
+ [(CYNavigationController *) [self transientViewController] reloadData];
}
- (id) initWithDatabase:(Database *)database {
bool loaded_;
}
-- (void) setPage:(CYViewController *)page;
- (void) loadData;
@end
[self complete];
}
-- (void) setPage:(CYViewController *)page {
- [page setDelegate:self];
-
- CYNavigationController *navController = (CYNavigationController *) [tabbar_ selectedViewController];
- [navController setViewControllers:[NSArray arrayWithObject:page]];
-}
-
- (void) tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
CYNavigationController *controller = (CYNavigationController *) viewController;
- (BOOL) openCydiaURL:(NSURL *)url {
CYViewController *page([self pageForURL:url]);
- if (page != nil)
- [self setPage:page];
+ if (page != nil) {
+ CYNavigationController *nav = [[[CYNavigationController alloc] init] autorelease];
+ [nav setViewControllers:[NSArray arrayWithObject:page]];
+ [tabbar_ setTransientViewController:nav];
+ }
return page != nil;
}
@interface UITabBarController (Apple)
- (UITransitionView *) _transitionView;
+- (UIViewController *) transientViewController;
+- (void) setTransientViewController:(UIViewController *)controller;
+- (void) setTransientViewController:(UIViewController *)controller animated:(BOOL)animated;
@end
@interface UITabBarItem (Apple)