如果 UIAlertView 被弃用,为什么它在 iOS 8 中工作?

Why does UIAlertView work in iOS 8 if it's deprecated?

我目前是 运行 iOS 8.1.4,我在我的代码中使用 UIAlertView 没有任何问题。但是文档说它不适用于 iOS 8. 那我错过了什么?

弃用并不意味着 "not available"。意思是"outdated, should not be used for new projects and may be removed from future versions"。理想情况下,您弃用框架版本 N 中的某些内容,并在版本 N+3 中将其完全删除,这样每个人都可以更改以升级代码。