1

When we press on button to scan QR code there is default cancel,info button.

I require another button that on flash.So how can i change in zbaerviewcontroller to customize it.

user2071201
  • 101
  • 1
  • 2
  • 5

2 Answers2

2

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.

Hope it help to you :)

Deepesh
  • 8,065
  • 3
  • 28
  • 45
Rushabh
  • 3,208
  • 5
  • 28
  • 51
0

You can remove the cancel button by setting the property showsZBarControls = NO;

Refer the following links,

How to hide info button in ZBar Bar Code Reader for iOS6.0 and above

ZBar SDK iOS: Remove cancel button in scanner view?

Community
  • 1
  • 1
Venk
  • 5,949
  • 9
  • 41
  • 52