add a uibarbutton for ZBarReaderViewController

前端 未结 2 1005
挽巷
挽巷 2021-01-15 01:05

I am working on ZBarReader and What I am having so far right now is

ZBarReaderViewController *controller = [[ZBarReaderViewController alloc] init];
controll         


        
2条回答
  •  不知归路
    2021-01-15 01:36

    Besides @Mat answer, should add [self.zReader.view setFrame:[UIScreen mainScreen].bounds]; before self.zReader.cameraOverlayView=[self setOverlayPickerView];

    Because, by default, the size of self.zReader is (320, 480).

    By the way, if no need compatible iOS6.0, you can just use [AVCaptureDevice]: https://developer.apple.com/library/mac/documentation/AVFoundation/Reference/AVCaptureDevice_Class/Reference/Reference.html

提交回复
热议问题