gpt4 book ai didi

c# - 如何在 Xamarin.iOS 中构建自定义 UIAlertController?

转载 作者:行者123 更新时间:2023-11-29 05:38:48 25 4
gpt4 key购买 nike

我目前正在处理无法使用 UIAlertController 构建的设计。我如何定制它?

最佳答案

您不应该更改AlertView,推荐的方法是按原样使用它,但如果您确实想创建自己的警报模式,则应该使用ViewController。苹果Docs状态:

The UIAlertController class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified.

因此,您基本上必须创建一个继承自 UIViewController 的新警报,该警报显示为弹出窗口,如您所见 here

关于c# - 如何在 Xamarin.iOS 中构建自定义 UIAlertController?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56774416/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com