AVCamViewController没有可见的@interface声明选择器层

时间:2014-06-02 02:40:17

标签: interface selector layer avcam

- (void)setSession:(AVCaptureSession *)session {
    ((AVPlayerLayer *)[self layer]).videoGravity = AVLayerVideoGravityResizeAspectFill;
    ((AVPlayerLayer *)[self layer]).bounds = ((AVPlayerLayer *)[self layer]).bounds;
    [(AVCaptureVideoPreviewLayer *)[self layer] setSession:session];
}

当我尝试使用视频重力代码时,它显示错误,No visible @interface for AVCamViewController声明选择器层,当它表示" self layer"在AVCAM样本中?我该如何解决这个问题?

0 个答案:

没有答案