title: Programmatically UIViewController Autorotation
body: <p>I have a <code>UIViewController</code> with a XIB-file which contains a button. In the <code>IBAction</code> method of the button I create a new <code>UIViewController</code> with just one WebView.</p>
  
  <pre><code>UIViewController *onlineViewCtrl = [[UIViewController alloc]init];
  [onlineViewCtrl.view addSubview:WebView];
  </code></pre>
  
  <p>I present this new ViewController:</p>
  
  <pre><code>[self.navigationController pushViewController:onlineViewCtrl animated:YES];
  </code></pre>
  
  <p>That works as expected but now on iOS versions &lt;6 I have an issue with the autorotation of the screen.</p>
  
  <p>The <code>onlineViewCtrl</code> does not rotate! Normally I would include the autorotate methods but how should I do that in case of the <code>onlineViewCtrl</code> where I don't have a own class or xib?</p>
  
  <p>It is interesting that on iOS 6 everything works perfectly. Does anybody know why? But more important how does it work on iOS &lt;6?</p>
  
  <p>Thanks in advance.</p>