iOS AVCaptureVideoPreviewLayer 在 UIView 中没有显示?
iOS AVCaptureVideoPreviewLayer 在 UIView 中没有显示?[英]iOS
AVCaptureVideoPreviewLayer not showing in UIView? The Problem I have a sample
application from Apple (SquareCam) that I’m using as reference to create a custom
interface for a camera. I’m using the AVFoundation framework. If I build and run theview ui框架
project from Apple, the app runs as expected. However, if I take the same code from that
project and place it in a new project in Xcode, the video preview will not display.
我有一个来自 Apple(SquareCam)的示例应用程序,我正在使用它作为参考来为相机
创建自定义界面。我正在使用 AVFoundation 框架。如果我从 Apple 构建并运行该项
目,该应用程序将按预期运行。但是,如果我从该项目中获取相同的代码并将其放在
Xcode 中的新项目中,则不会显示视频预览。
I have simplified the code down to the essential components to run a video preview
layer. Again, this code runs fine as is in the Apple (SquareCam) project, but does not
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论