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

View File

@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-mediapicker-dmcbig",
"version": "2.3.4",
"version": "2.3.5",
"description": "android ios mediaPicker support selection of multiple image and video",
"cordova": {
"id": "cordova-plugin-mediapicker-dmcbig",

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-mediapicker-dmcbig" version="2.3.4">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-mediapicker-dmcbig" version="2.3.5">
<name>MediaPicker</name>
<js-module name="MediaPicker" src="www/MediaPicker.js">
<clobbers target="window.MediaPicker"/>

View File

@@ -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;
}
}