Skip to content

Commit

Permalink
Stops showing the partially loaded photos, since that causes a jarrin…
Browse files Browse the repository at this point in the history
…g jump to the bottom when the full photo list loads
  • Loading branch information
ehopealot committed Jul 6, 2012
1 parent 0ce25d2 commit 5fc678d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Classes/ELCAssetTablePicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ -(void)viewDidLoad {
[self performSelectorInBackground:@selector(preparePhotos) withObject:nil];

// Show partial while full list loads
[self.tableView performSelector:@selector(reloadData) withObject:nil afterDelay:.5];
//[self.tableView performSelector:@selector(reloadData) withObject:nil afterDelay:.5];
}

-(void)preparePhotos {
Expand All @@ -54,10 +54,11 @@ -(void)preparePhotos {
[self.elcAssets addObject:elcAsset];
}];
NSLog(@"done enumerating photos");

[self.tableView reloadData];
[self.navigationItem setTitle:@"Pick Photos"];
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:ceil([self.assetGroup numberOfAssets]/4.0)-1 inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:NO];

[self.navigationItem setTitle:@"Pick Photos"];
[pool release];

}
Expand Down

0 comments on commit 5fc678d

Please sign in to comment.