ZBar SDK iOS: Remove cancel button in scanner view?

纵然是瞬间 提交于 2019-12-24 08:14:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!