@implementation CYNavigationController
-- (void) dealloc {
- [super dealloc];
-}
-
- (NSArray *) navigationURLCollection {
NSMutableArray *stack([NSMutableArray array]);
- (void) reloadData {
for (CYViewController *page in [self viewControllers]) {
+ // Only reload controllers that have already loaded.
+ // This prevents a page from accidentally loading too
+ // early if it hasn't been shown on the screen yet.
if ([page hasLoaded])
[page reloadData];
}