zbarsdk ZBarReaderViewController - set full screen for ipad

廉价感情. 提交于 2019-12-11 01:17:36

问题


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

It keeps showing in the top left hand corner.

I have tried the following

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

Any suggestions would be much appreciated


回答1:


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)

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




回答2:


Hope this helps out http://zbar.sourceforge.net/iphone/sdkdoc/tutorial.html and do look at this : Scandit SDK barcode scanner from http://www.scandit.com/. Their latest version was updated to optimally support the iPad 2.



来源:https://stackoverflow.com/questions/10961718/zbarsdk-zbarreaderviewcontroller-set-full-screen-for-ipad

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