我有AVCaptureSession
,我在AVCaptureVideoPreviewLayer
中显示UICollectionViewCell
。如果用户点击UICollectionViewCell
,则会打开另一个CameraController
(它是UIViewController
的继承人)并在AVCaptureVideoPreviewLayer
动画中添加UIView
。当用户关闭CameraController
时,动画已完成,我返回AVCaptureVideoPreviewLayer
中的UICollectionViewCell
,问题是虽然明显返回,但我更改了AVCaptureVideoPreviewLayer
帧。所以我想制作两个AVCaptureVideoPreviewLayer
,具有不同的帧值。我怎么能这样做?