2

I'm using Zbar qr and bar code recongnition tool in my app.

I've recompiled the framework to support iPad screen size as well, but now I get is the redish and bluish rectangle around camera view.

Any ideas how get reed of it ?

blue lines on the sides, and red on top and bottom

deimus
  • 9,565
  • 12
  • 63
  • 107

2 Answers2

0

Have you tried reader.cameraOverlayView = nil ?

I guess you have already read the documentation, but if you did not, here is the link : ZBar documentation

NSZombie
  • 1,857
  • 14
  • 14
  • I've created cameraOverlayView, it doesn't make sense to assign nil to it, as the default camera layout does not meet UI requirements in my case... – deimus Dec 30 '11 at 10:45
0

Actually I've fixed this in the sources of Zbar, recompiled and used my own build of library...

deimus
  • 9,565
  • 12
  • 63
  • 107
  • Do you remember how you did it? I am having the same problem, and can't find the reason in the source code. (I am compiling a version of the Zbar archive) – Thermometer Feb 12 '14 at 10:46
  • Ah sorry, can't remember right now, the question was dated to 2011. – deimus Feb 12 '14 at 11:05
  • But try to find some lines in the sources related to `UIColor` – deimus Feb 12 '14 at 11:05
  • 1
    Found it! For future references: In the project's build settings, search for the preprocessing macros. The Debug setting says `DEBUG_OBJC=1`. You need to set it to `NDEBUG=1` to get rid of the Debug options (printing debug info, border around readerview, etc) – Thermometer Feb 12 '14 at 11:40
  • Yeah, might be that what I've changed as well, sorry couldn't remember exactly. – deimus Feb 12 '14 at 12:19
  • No problem, thanks for giving me the right direction – Thermometer Feb 12 '14 at 12:24