mirror of
https://github.com/DmcSDK/cordova-plugin-mediaPicker
synced 2026-05-22 00:01:31 +08:00
fix ios bug issues 27
fix ios bug issues 27
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user