title: Please me your suggustion for changing orientation of Avplayer?
body: <p>In my app, all view is opening in <code>Portait</code> mode, But I want to change the mode for <code>AVPlayer view</code>, means When user come on this view, device orientation is automatically change in to <code>Landscape</code> mode.</p>
  
  <p>I have implemented this using following code. It works fine, I want to just confirm, by using following code, there will be any problem when I upload my app on appstore. </p>
  
  <pre><code>-(void)viewDidAppear:(BOOL)animated
  {
      if(UIDeviceOrientationIsPortrait(self.interfaceOrientation)){
          if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)])
          {
              objc_msgSend([UIDevice currentDevice], @selector(setOrientation:), UIInterfaceOrientationLandscapeLeft );
          }
      }
  }
  
  
  -(void)viewDidDisappear:(BOOL)animated{
  
      if(UIDeviceOrientationIsLandscape(self.interfaceOrientation)){
          if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)])
          {
              objc_msgSend([UIDevice currentDevice], @selector(setOrientation:), UIInterfaceOrientationPortrait );
          }
      }
  }
  </code></pre>