问题
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.
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/12205207/zbar-sdk-ios-remove-cancel-button-in-scanner-view