0
根據PhoneGap documentation,我可以寫這樣的證明了概念一個JavaScript:iPhone相機是否需要我編寫XCode項目?
window.plugins.barcodeScanner.scan(
function(result) {
if (result.cancelled)
alert("the user cancelled the scan")
else
alert("we got a barcode: " + result.text)
},
function(error) {
alert("scanning failed: " + error)
}
)
但隨後開始談論一個XCode項目。
問:我是否需要編寫XCode應用程序才能使用PhoneGap的barcodescanner功能?