Skip to content

Commit

Permalink
Cache data when flipping between views
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Fitzsimmons committed Jan 13, 2011
1 parent cb4c172 commit be190fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Classes/AbstractPlacesViewController.m
Expand Up @@ -40,7 +40,9 @@ @implementation AbstractPlacesViewController
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[self loadPlacesForCurrentLocation:nil];
if (! placeData) {
[self loadPlacesForCurrentLocation:nil];
}
}

- (void)dealloc
Expand Down
4 changes: 3 additions & 1 deletion Classes/ContextViewController.m
Expand Up @@ -43,7 +43,9 @@ @implementation ContextViewController
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[self loadContextForCurrentLocation:self];
if (! contextData) {
[self loadContextForCurrentLocation:self];
}
}

- (void)dealloc
Expand Down

0 comments on commit be190fa

Please sign in to comment.