iphone - 什么类处理 iPhone 上的弹出/通知窗口?

标签 iphone cocoa-touch

我正在寻找 iPhone 上弹出/消息窗口的类名称(例如,当您有未接来电或收到消息时,会出现一个蓝色窗口。)

最佳答案

该类称为UIAlertView。来自文档:

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 - 什么类处理 iPhone 上的弹出/通知窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/175696/

相关文章:

objective-c - 我的应用程序在 CGRectIntersectsRect 上崩溃

iphone - 将对象添加到 NSMutableArray 不适用于 iPhone 应用程序

iphone - 通过 iPhone 支付商品的选项

iphone - 显示自定义 NSManagedObject 的值

ios - 抓取屏幕图像然后裁剪后我会失去分辨率吗?

iphone - 如何比较两个对象是否真的是同一个对象?

objective-c - 如何检测 Safari 是否在 iPhone 上被禁用

iphone - 如何处理加载多个图像以进行滚动和缩放?图像的 DPI 是否会影响 iPad 加载图像的方式?

cocoa-touch - 如何在 iOS 上格式化和打印 float ?

ios - 是否可以在设备方向更改时更改 Controller 内单个 View 的方向?