看起来像avcapturevideopreviewlayer的方向已在iOS 6中折旧。任何人都知道新代码?这是我目前的(折旧)代码:iOS 6中不推荐使用方向
[self setPreviewLayer:[[AVCaptureVideoPreviewLayer alloc] initWithSession:[self captureSession]]];
[[self previewLayer] setVideoGravity:AVLayerVideoGravityResizeAspectFill];
previewLayer.orientation = UIInterfaceOrientationLandscapeRight;
Okey。那就对了。但是,你的问题是?可能这会帮助你:http://stackoverflow.com/questions/12404556/interface-orientation-in-ios-6-0 – NDY