我正在创建一个使用Cordova相机功能的Phonegap应用程序。当我在ios模拟器上运行它时,照片库popover工作得很好,但是当我在iPad Air 64bit视网膜上运行它根本不起作用。知道为什么吗?
$(document).on("tap", "#place-camera-roll", function() {
navigator.camera.getPicture(cameraSuccess, cameraError, {
destinationType:Camera.DestinationType.FILE_URI,
sourceType:Camera.PictureSourceType.PHOTOLIBRARY
});
function cameraSuccess(imageData) {
alert(imageData);
}
function cameraError() {
navigator.notification.alert(
"Sorry... There was an error accessing your photos.",
null,
"Error",
"Done"
);
}
});
编辑:点击时出现EXC_BAD_ACCESS错误。码= 1,地址= 0x3000300030001