fix ios bug issues 27

fix ios bug issues 27
This commit is contained in:
dmcBig
2018-08-13 15:36:08 +08:00
parent 361174e953
commit 2d43ce29e3
3 changed files with 10 additions and 8 deletions
@@ -219,12 +219,14 @@
}
-(void)show:(NSInteger *)index{
fetchResult = dataSource[(int)index];
[self setTitleView:albumsTitlelist[(int)index]];
[_collectionView reloadData];
[self hiddenAlbumlistView];
[_collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0] atScrollPosition:UICollectionViewScrollPositionTop animated:NO];
nowSelectAlbum=index;
if([dataSource count]>0){
fetchResult = dataSource[(int)index];
[self setTitleView:albumsTitlelist[(int)index]];
[_collectionView reloadData];
[self hiddenAlbumlistView];
[_collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:0] atScrollPosition:UICollectionViewScrollPositionTop animated:NO];
nowSelectAlbum=index;
}
}