Skip to content

Commit

Permalink
#55 Fix: Pictures disappear until you do scrolling gesture when you t…
Browse files Browse the repository at this point in the history
…ake screenshot
  • Loading branch information
1and2papa committed Oct 28, 2014
1 parent 166c104 commit 0629103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CTAssetsPickerController/CTAssetsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ - (void)reloadData
if (self.assets.count > 0)
{
[self.collectionView reloadData];
[self.collectionView setContentOffset:CGPointMake(0, self.collectionViewLayout.collectionViewContentSize.height)];

if (self.collectionView.contentOffset.y <= 0)
[self.collectionView setContentOffset:CGPointMake(0, self.collectionViewLayout.collectionViewContentSize.height)];
}
else
{
Expand Down

0 comments on commit 0629103

Please sign in to comment.