UIAlertController

UIAlertView and UIActionSheet are deprecated since iOS 8. The new way to go is UIAlertController, which can be configured  as an AlertView or as an ActionSheet.