Written by Mattt September 30th, 2014 This article has been translated into: 中文 Did you know that UIAlertView and UIActionSheet (as well as their respective delegate protocols) are deprecated in iOS 8? It’s true. ⌘-click on UIAlertView or UIActionSheet in your code, and check out the top-level comment: UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyle