UIAlertController.Create(String, String, UIAlertControllerStyle) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 UIAlertController 对象,以向用户显示包含 title
、 message
和 UIAlertControllerStyle 首选样式的警报,然后返回该 UIAlertController 对象。
[Foundation.Export("alertControllerWithTitle:message:preferredStyle:")]
public static UIKit.UIAlertController Create(string title, string message, UIKit.UIAlertControllerStyle preferredStyle);
static member Create : string * string * UIKit.UIAlertControllerStyle -> UIKit.UIAlertController
参数
- preferredStyle
- UIAlertControllerStyle
警报的所需样式。
返回
可以自定义的 UIAlertController 的新实例。
- 属性
注解
有关如何使用它的示例, UIAlertController 请参阅文档。