ios - 为什么 Apple 决定在 iOS 9.0 中弃用 UIAlertView 的大部分方法?

标签 ios objective-c iphone swift

<分区>

在浏览 Apple 的文档时,我发现他们已经弃用了 UIAlertView 类中的大多数方法。有没有其他选择?

链接:https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAlertView_Class/index.html#//apple_ref/c/tdef/UIAlertViewStyle

最佳答案

除了核心 iOS 团队之外,没有人确切地知道 Apple 为什么要做任何事情,但我的猜测是他们正试图插入(或温和地鼓励)开发人员使用更新的 ( and more flexible ) UIAlertController ,随 iOS 8.0 一起提供。

关于ios - 为什么 Apple 决定在 iOS 9.0 中弃用 UIAlertView 的大部分方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31759477/

相关文章:

iphone - UITableView 中的 UITextfield 值

ios - 您能否使 Xcode 5.1 目标依赖项仅构建有效的体系结构?

iphone - CFStream SSL 错误 -9800

objective-c - 协议(protocol)在内部是如何实现的?

iphone - 恢复应用内购买时没有出现 'buy' 提示?是否可以?

ios - 在 IOS 设备上模拟 GPS 位置

ios - Firebase SDK 不适用于 iOS 10

javascript - IOS WebRTC js 黑屏

iphone - iOS7 对此 NSMutableCharacterSet 算法的 react 不同

android - Windows 上的跨平台开发 (iOS/Android/Blackberry)