Skip to content

Commit

Permalink
Fix #32 "No photos" view shows even there are photos in album.
Browse files Browse the repository at this point in the history
  • Loading branch information
1and2papa committed Apr 29, 2014
1 parent 9f0fb17 commit 0e3aa1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CTAssetsPickerController/CTAssetsGroupViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,14 @@ - (void)selectedAssetsChanged:(NSNotification *)notification
- (void)reloadData
{
if (self.groups.count > 0)
{
[self hideSpecialView];
[self.tableView reloadData];
}
else
{
[self showNoAssets];
}
}


Expand All @@ -355,6 +360,11 @@ - (void)showNoAssets
self.tableView.backgroundView = [self.picker noAssetsView];
}

- (void)hideSpecialView
{
self.tableView.backgroundView = nil;
}


#pragma mark - Table view data source

Expand Down

0 comments on commit 0e3aa1d

Please sign in to comment.