UIAlertView is deprecated in iOS 8.
2015-10-28 17:39
375 查看
UIAlertView is deprecated in iOS 8.
Important: UIAlertView is deprecated in iOS 8. (Note that UIAlertViewDelegate is also deprecated.) To create and manage alerts in iOS 8 and later, instead use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert.
In apps that run in versions of iOS prior to iOS 8, use the UIAlertView class to display an alert message to the user. An alert view functions similar to but differs in appearance from an action sheet (an instance of UIActionSheet).
Use the properties and methods defined in this class to set the title, message, and delegate of an alert view and configure the buttons. You must set a delegate if you add custom buttons. The delegate should conform to the UIAlertViewDelegate protocol. Use
the show method to display an alert view once it is configured.
Important: UIAlertView is deprecated in iOS 8. (Note that UIAlertViewDelegate is also deprecated.) To create and manage alerts in iOS 8 and later, instead use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert.
In apps that run in versions of iOS prior to iOS 8, use the UIAlertView class to display an alert message to the user. An alert view functions similar to but differs in appearance from an action sheet (an instance of UIActionSheet).
Use the properties and methods defined in this class to set the title, message, and delegate of an alert view and configure the buttons. You must set a delegate if you add custom buttons. The delegate should conform to the UIAlertViewDelegate protocol. Use
the show method to display an alert view once it is configured.
相关文章推荐
- iphone:自定义UIAlertView
- 在iOS 8中使用UIAlertController
- [Swift]UIKit学习之警告框:UIAlertController和UIAlertView
- 兼容iOs7的自定义alertView
- UIAlertView的基本使用和对话框中按钮的事件处理方法
- UIButton,UIAlertView
- UIAlertView&UIActionSheet
- UIAlertView、UIActionSheet
- iOS中消息框提示的出现与自动消失
- UIAlertView 实现自动消失
- iOS中自动消失提示框的实现
- UIAlertView笔记
- Objective-C Associative References(关联引用)- 实践
- iOS8新特性之---- UIAlertController解析
- UIAlertView添加其它控件
- UIAlertView 带输入框,且输入框中预先填入字符
- 响应 UIAlertView 按钮事件
- iOS-UIAlertView弹框2秒后自动消失
- iOS学习之UINavigationController详解与使用(一)添加UIBarButtonItem
- iOS学习之动态添加Button和监听UIAlertView按钮