看起来 avcapturevideopreviewlayer 的方向在 iOS 6 中已被贬低。有人知道新代码吗?这是我当前(折旧)的代码:
[self setPreviewLayer:[[AVCaptureVideoPreviewLayer alloc] initWithSession:[self captureSession]]];
[[self previewLayer] setVideoGravity:AVLayerVideoGravityResizeAspectFill];
previewLayer.orientation = UIInterfaceOrientationLandscapeRight;