问题
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