google-code-export / tibar

Automatically exported from code.google.com/p/tibar
1 stars 0 forks source link

Overlay on barcode scanner #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to extend the TiBar to be able to place a view on top of the 
"camera"?

Original issue reported on code.google.com by nextmint@gmail.com on 19 Oct 2010 at 5:07

GoogleCodeExporter commented 9 years ago
I tried the following:

# UIImageView *scanOverlay=[[UIImageView alloc] initWithImage:[UIImage 
imageNamed:@"overlay.png"]];
# [scanOverlay setFrame:CGRectMake(0,0,300,480)]; //Adjust X,Y,W,H as needed

Then attaching the view as specified by the ZBar SDK:

# reader.cameraOverlayView = scanOverlay;

I've tried to do this in initReader and scanButtonTapped. but it does not work.
I also tried:

# [reader setCameraOverlayView:scanOverlay];

Still no luck. Lukasz, can you advise please what can be done with this, it 
would be really important to get this to work.

Used trunk with Ti Mobile 1.5.0 and iOS 4.2 SDK.

Original comment by tarso...@gmail.com on 9 Dec 2010 at 1:53

GoogleCodeExporter commented 9 years ago

Original comment by lukasz.r...@gmail.com on 27 Jan 2011 at 4:12

GoogleCodeExporter commented 9 years ago
Hello,

Is this still not possible?

Thanks.

Original comment by ahmet%20...@gtempaccount.com on 15 May 2011 at 7:17

GoogleCodeExporter commented 9 years ago
This has been solved for a bit of time, see  
http://code.google.com/p/tibar/issues/detail?id=15
Just need admin to integrate into the main codebase.

Original comment by codewise...@gmail.com on 17 Mar 2012 at 7:45