打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
UIAlertControllerStyle

A UIAlertController object displays an alert message to the user. This class replaces the UIActionSheet and UIAlertView classes for displaying alerts. After configuring the alert controller with the actions and style you want, present it using the presentViewController:animated:completion: method. More...

Inheritance


Import Statement


@import UIKit;

Availability


Available in iOS 8.0 and later.
  • Constants indicating the type of alert to display.

    Declaration

    Swift

    enum UIAlertControllerStyle : Int { case ActionSheet case Alert}

    Objective-C

    typedef enum UIAlertControllerStyle: NSInteger { UIAlertControllerStyleActionSheet = 0, UIAlertControllerStyleAlert} UIAlertControllerStyle;

    Constants

    • UIAlertControllerStyleActionSheet

      An action sheet displayed in the context of the view controller that presented it.

      Use an action sheet to present the user with a set of alternatives for how to proceed with a given task. You can also use this style to prompt the user to confirm a potentially dangerous action.

      Available in iOS 8.0 and later.

    • UIAlertControllerStyleAlert

      An alert displayed modally for the app.

      Available in iOS 8.0 and later.

    Availability

    Available in iOS 8.0 and later.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
自定义弹出框alert样式
iOS从info.plist?获取项目的名称及版本号
Silent Push Notification in iOS 7 does not work
class_getInstanceMethod 和 class_getClassMethod
110
IOS之学习笔记十五(协议和委托的使用)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服