1

Is there a way to remove the cancel button in the initial scan view? I have my App set to go immediately to scanner, so the cancel is unnecessary.

user1486548
  • 1,201
  • 4
  • 15
  • 22

2 Answers2

3

Assuming you are using version 1.2 of the SDK and you are also using the ZBarReaderViewController, you could set the property showsZBarControls = NO;

That will remove the cancel and information button.

jeyben
  • 258
  • 2
  • 8
0

Found it. While setting showZBarControls = NO removes the entire bar, I needed something that would just remove the cancel button. The best way to do this was to remove the ZbarControls and create a new toolbar and overlay it.

user1486548
  • 1,201
  • 4
  • 15
  • 22
  • It might be easier for you to access the `UIToolbar`'s properties, and then setting the cancel button to nil. – jakenberg Jun 19 '13 at 21:28