title: Display UIAlertController from UIView/NSObject class
body: <p>I have <em><code>working iOS application</code></em>
  In order to <em><code>support iOS8</code></em>, I am replacing <em><code>UIAlertView/UIActionSheet with
  UIAlertController</code></em>.</p>
  
  <p><strong>Problem :</strong><br>
  For display UIAlertController I need presentViewController
  method of UIViewController class.<br>
  <strong>But</strong> UIAlertView is display from classes which are <em><code>inherited</code></em> from
  <em><code>UIView or NSObject</code></em>, <br>
  I can not get <code>[self presentViewController...]</code> method for obvious reason.</p>
  
  <p><strong>My Work :</strong><br>
  I tried getting rootViewController form current window and display UIAlertController.</p>
  
  <pre><code>[[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController ...]
  </code></pre>
  
  <p>but have some rotation problems like if my current view controller do not have rotation support
  it will rotate if UIAlertController is open.</p>
  
  <p><strong>Question :</strong><br>
  Did any one faced same problem and have safe solution ? <br>
  if yes please provide me some example or give some guide</p>