title: set UIInterfaceOrientation at runtime
body: <p>I have 5 view in storyboard. I want each view orientation will be different for example one view will be <code>UIInterfaceOrientationLandscapeRight</code> another view will be <code>UIInterfaceOrientationLandscapeLeft</code> or <code>UIInterfaceOrientationPortrait</code> or <code>UIInterfaceOrientationPortraitUpsideDown</code>. So how do set this orientation of view different. </p>
  
  <p>I have used 
  <code>[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];</code>
   but it show warning 'UIDevice may not responds to setOrientation'. According to many of the stackoverflow writers I am using </p>
  
  <pre><code>-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { 
      //return UIInterfaceOrientationLandscapeLeft;
      return (toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown); 
  }
  </code></pre>
  
  <p>this above code but it is not working in my project. So what is the proper procedure for the orientation of the screen.
  Thanks in advance.</p>