How to select multiple images from gallery in titanium?

﹥>﹥吖頭↗ 提交于 2019-12-30 10:16:24

问题


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.



来源:https://stackoverflow.com/questions/23932349/how-to-select-multiple-images-from-gallery-in-titanium

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!