With iOS 8.0, Apple introduced UIAlertController to replace UIActionSheet. Unfortunately, Apple didn’t add any information on how to present it. I found an entry about it on hayaGeek’s blog, however, it doesn’t seem to work on iPad. The view is totally misplaced:
Misplaced:
Correct:
I use the following code to show it on the interface:
let alert = UIAlertController()
// setting buttons
self.presentModalViewController(alert, animated: true)
Is there another way to add it for iPad? Or did Apple just forget the iPad, or not implemented, yet?