1
1) 응용 프로그램이 다음 오류 메시지와 함께 충돌합니다.사진을 찍을 때 응용 프로그램이 충돌 함
Multi-tasking -> Device: YES, App: YES
2012-05-15 22:14:04.401 ProOne[1720:607] Received memory warning. Level=1
2012-05-15 22:14:08.556 ProOne[1720:607] -[__NSArrayM pickerController]: unrecognized selector sent to instance 0x1e7e90
2012-05-15 22:14:08.758 ProOne[1720:607] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM pickerController]: unrecognized selector sent to instance 0x1e7e90'
는 여기가 View
에서 촬영 한 이미지를 표시하려면 어떻게 코드
onImageClick: function() {
navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL,
sourceType : Camera.PictureSourceType.CAMERA,
allowEdit : false,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 500,
targetHeight: 500
});
function onSuccess(imageData) {
var image = Ext.getCmp('myImageId');
image.setSrc("data:image/jpeg;base64," + imageData);
}
function onFail(message) {
alert('Failed because: ' + message);
}
}
2)입니까?
이 코드를 어디에서 실행하고 있습니까? 기기에서? –
예. 기기 4에 있습니다. –
도움이 필요하십니까? –