How to select multiple images from gallery in tita

2020-03-25 03:13发布

问题:

Here I have the code to select image from gallery, but how can I select multiple images from gallery?

Ti.Media.openPhotoGallery({
    // allowEditing:true,
    mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
    success : function(e) {
        alert(e);
        ImageView.image = e.media;
        //alert('height:'+e.media.height+'width:'+e.media.height);
        lblWidth.text = 'W :'+e.media.width;
        lblHeight.text ='H :' +e.media.height;
    },
    cancel : function() {
    },
    error : function(err) {
    }
});

回答1:

Here I found the module for android

Link for marketplace (Multi Image Picker) and Link for the source code on github (TiMultiImagePicker). and here is the Link for iOS module.



回答2:

Selecting multiple images isn't supported either by Titanium nor native iOS.

You can try this iOS Asset Library Access module. However, I read that there are some issues with it.