zbarsdk ZBarReaderViewController - 为ipad设置全屏 [英] zbarsdk ZBarReaderViewController - set full screen for ipad

查看:99
本文介绍了zbarsdk ZBarReaderViewController - 为ipad设置全屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在iPad上全屏显示zbarsdk阅读器。

I am not able to display the zbarsdk reader in full screen on iPad.

它一直显示在左上角。

我试过以下

reader.wantsFullScreenLayout = YES;
reader.cameraOverlayView.frame=CGRectMake(0, 0, X, Y); //X and Y are iPad dimensions
[reader.cameraOverlayView sizeToFit];

我们非常感谢任何建议

推荐答案

好的,解决方案确实来自zbar sourceforge论坛。 iPad全屏支持仅在其最新测试版中受支持。要获得此信息,请转到 http://sourceforge.net/projects/zbar/files/ iPhoneSDK / beta / 并下载最新测试版(我使用的是ZBarSDK-1.2.2.dmg)

OK, the solution did come from the zbar sourceforge forums. iPad full screen support is only supported in their latest beta version. To get this, go to http://sourceforge.net/projects/zbar/files/iPhoneSDK/beta/ and download the latest beta (I used ZBarSDK-1.2.2.dmg)

我用这些替换了项目中现有的ZBarSDK文件,它完美地工作

I replaced the existing ZBarSDK files in my project with these, and it worked perferctly

这篇关于zbarsdk ZBarReaderViewController - 为ipad设置全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆