title: Presenting a UIAlertController properly on an iPad using iOS 8
body: <p>With iOS 8.0, Apple introduced <a href="https://developer.apple.com/library/prerelease/iOS/documentation/UIKit/Reference/UIAlertController_class/index.html" rel="noreferrer">UIAlertController</a> to replace <a href="https://developer.apple.com/library/ios/documentation/uikit/reference/uiactionsheet_class/Reference/Reference.html" rel="noreferrer">UIActionSheet</a>. Unfortunately, Apple didn't add any information on how to present it. I found an <a href="http://hayageek.com/uialertcontroller-example-ios/" rel="noreferrer">entry</a> about it on hayaGeek's blog, however, it doesn't seem to work on iPad. The view is totally misplaced:</p>
  
  <p>Misplaced:
  <img src="https://i.stack.imgur.com/KhAaj.png" alt="Misplaced image"></p>
  
  <p>Correct:
  <img src="https://i.stack.imgur.com/lFd3S.png" alt="enter image description here"></p>
  
  <p>I use the following code to show it on the interface:</p>
  
  <pre><code>    let alert = UIAlertController()
      // setting buttons
      self.presentModalViewController(alert, animated: true)
  </code></pre>
  
  <p>Is there another way to add it for iPad? Or did Apple just forget the iPad, or not implemented, yet?</p>