title: "interfaceOrientation" is deprecated in iOS 8, How to change this method Objective C
body: <p>I have downloaded a simpleCamera view from Cocoa Controls which use this method</p>
  
  <pre><code>- (AVCaptureVideoOrientation)orientationForConnection
  {
      AVCaptureVideoOrientation videoOrientation = AVCaptureVideoOrientationPortrait;
      switch (self.interfaceOrientation) {
          case UIInterfaceOrientationLandscapeLeft:
              videoOrientation = AVCaptureVideoOrientationLandscapeLeft;
              break;
          case UIInterfaceOrientationLandscapeRight:
              videoOrientation = AVCaptureVideoOrientationLandscapeRight;
              break;
          case UIInterfaceOrientationPortraitUpsideDown:
              videoOrientation = AVCaptureVideoOrientationPortraitUpsideDown;
              break;
          default:
              videoOrientation = AVCaptureVideoOrientationPortrait;
              break;
      }
      return videoOrientation;
  }
  </code></pre>
  
  <p>the problem is "interfaceOrientation" deprecated in iOS 8 but i dont know what and how to replace this in Switch condition. </p>