Open GoogleCodeExporter opened 9 years ago
There is new relase, TiBar 0.4.2:
http://code.google.com/p/tibar/downloads/detail?name=tibar-iphone-0.4.2.zip
Please test it with different devices and iOS versions and post the results:
http://code.google.com/p/tibar/issues/detail?id=13
Best regards,
Lukasz
Original comment by lukasz.r...@gmail.com
on 31 Jan 2011 at 12:09
Hello - I am having this issue as well. I'm on 0.4.2... I have a super simple
implementation. I am calling the function from a "sub view" - you have to click
on a button and then it opens a new table view from where you click "scan".
var tiBarConfig = {
classType:[
{"ZBarReaderViewController":true},
{"ZBarReaderController":false}
],
sourceType:[
{"Library":false},
{"Camera":true},
{"Album":false}
],
cameraMode:[
{"Default":true},
{"Sampling":false},
{"Sequence":false}
],
config:{
"showsCameraControls":true,
"showsZBarControls":true,
"tracksSymbols":true,
"enableCache":true,
"showsHelpOnFail":true,
"takesPicture":false
},
custom:{
"scanCrop":'',
"CFG_X_DENSITY":'',
"CFG_Y_DENSITY":'',
"continuous":''
},
symbol:{
"QR-Code":false,
"CODE-128":false,
"CODE-39":true,
"I25":false,
"DataBar":false,
"DataBar-Exp":false,
"EAN-13":false,
"EAN-8":false,
"UPC-A":false,
"UPC-E":false,
"ISBN-13":false,
"ISBN-10":false,
"PDF417":false
}
};
tiBar.scan({
configure: tiBarConfig,
success:function(data){
Ti.API.info('TiBar success callback!');
if(data && data.barcode){
Ti.UI.createAlertDialog({
title: "Scan result",
message: "Barcode: " + data.barcode + " Symbology:"+data.symbology
}).show();
}
},
cancel:function(){
Ti.API.info('TiBar cancel callback!');
},
error:function(){
Ti.API.info('TiBar error callback!');
}
});
Original comment by apbr...@gmail.com
on 10 Feb 2011 at 12:27
Howdy - I figured out the problem. Make sure you're using the "example" config
that is commented out. NOT the "default" configuration. Here's an example of
that should be work.
var tiBarConfig = {
classType: "ZBarReaderController", // ZBarReaderViewController, ZBarReaderController
sourceType: "Album", // Library(C), Camera(VC), Album(C)
cameraMode: "Default", // Default, Sampling, Sequence
config:{
"showsCameraControls":true, // (VC)
"showsZBarControls":true,
"tracksSymbols":true,
"enableCache":true,
"showsHelpOnFail":true,
"takesPicture":false
},
custom:{ // not implemented yet
"scanCrop":'',
"CFG_X_DENSITY":'',
"CFG_Y_DENSITY":'',
"continuous":''
},
symbol:{
"QR-Code":false,
"CODE-128":true,
"CODE-39":false,
"I25":false,
"DataBar":false,
"DataBar-Exp":false,
"EAN-13":false,
"EAN-8":false,
"UPC-A":false,
"UPC-E":false,
"ISBN-13":false,
"ISBN-10":false,
"PDF417":false
}
};
Original comment by apbr...@gmail.com
on 11 Feb 2011 at 1:26
Original issue reported on code.google.com by
fragranc...@gmail.com
on 20 Jan 2011 at 2:19