看起來像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