我编写了一个静态框架,其中有一个名为ViewfinderViewController的类,它使用AVCaptureSession设置相机。这个ViewController还添加了一个AVCaptureVideoPreviewLayer作为它自己View层的子层://codeinViewfinderViewController.mpreviewLayer=[[AVCaptureVideoPreviewLayeralloc]initWithSession:captureSession];previewLayer.frame=self.view.bounds;previewLayer.vid