Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想以矩形显示相机作为UItableViewCell扫描数字的一部分。
UItableViewCell
如何更改大小UIImagePickerViewController并将其添加为subview?
UIImagePickerViewController
subview
您可以添加UIImagePickerViewControlleraschildViewController并将其视图作为子视图添加到您的单元格(确保您不要重复使用它),或者您可以使用 扫描仪AVFoundation,并将AVCaptureVideoPreviewLayeras 子图层添加到您的视图层。我会选择后者。
childViewController
AVFoundation
AVCaptureVideoPreviewLayer