title: AVCaptureVideoPreview Orientation iOS 6
body: <p>Since <code>[AVCaptureVideoPreviewLayer setOrientation]</code> was deprecated in iOS 6, I am trying to use <code>[AVCaptureConnection videoOrientation:AVCaptureVideoOrientationLandscapeLeft];</code> but I getting an error saying "No visible @interface for 'AVCaptureConnection' declares the selector 'videoOrientation.'" I have been trying to research for a AVCaptureVideo SDK for iOS 6 but I've had no luck. I also tried recreating the AVCaptureConnection but I had no luck in doing that. Here is a web reference to the code I am partially using. <a href="http://red-glasses.com/index.php/tutorials/ios4-take-photos-with-live-video-preview-using-avfoundation/" rel="nofollow">http://red-glasses.com/index.php/tutorials/ios4-take-photos-with-live-video-preview-using-avfoundation/</a></p>