我在 iPhone 4S 上使用 Phonegap 2.7.0。当我第一次调用时.getPicture
,从库中选择图片后不会触发回调。之后,一切都很好,直到应用程序重新启动。我的代码:
var captureSuccess = function (imageURI) {
alert('Success');
};
var captureError = function (error) {
alert('Error');
};
navigator.camera.getPicture(captureSuccess, captureError, {
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
});
当我使用DATA_URL
assourceType
时,每次都会触发回调。
感谢您的任何建议。