【问题标题】:How to change height and width of camera view(UIImagePickerViewController) iOS?如何更改相机视图的高度和宽度(UIImagePickerViewController)iOS?
【发布时间】:2014-10-28 18:28:28
【问题描述】:

我想以矩形显示相机作为UItableViewCell 的一部分以扫描数字。

如何更改UIImagePickerViewController 的大小并将其添加为subview

【问题讨论】:

    标签: ios iphone camera ios-camera


    【解决方案1】:

    您可以将UIImagePickerViewController 添加为childViewController 并将其视图作为子视图添加到您的单元格(确保您不要重复使用它),或者您可以使用AVFoundation 进行扫描,然后添加AVCaptureVideoPreviewLayer 作为视图层的子层。 我会选择后者。

    【讨论】:

      猜你喜欢
      • 2015-09-07
      • 2017-07-23
      • 1970-01-01
      • 1970-01-01
      • 2021-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-19
      相关资源
      最近更新 更多