Add overlay over top of ZBar scanner

给你一囗甜甜゛ 提交于 2019-12-05 12:13:06

Do you see the cameraOverlayView at all? set the background color to red or something: cameraOverlayView.backgroundColor = [UIColor redColor];

If you don't see the cameraOverlayView at all, then probably you need to set reader. showsZBarControls = NO which will disable the the default controls and use your custom overlay.

If you do see the cameraOverlayView, then the label is probably outside the bounds. Play around with the origin points and get it into position.

BTW I see you're not using ARC, make sure you release instructionLabel!

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