【发布时间】:2021-07-22 10:53:53
【问题描述】:
我想在 Objective-c 的 UIAlertController 中显示一些带有超链接的文本作为消息。 如果我单击该超链接,它应该重定向我以在 Safari 中打开该链接。
我不想在第三方库中使用。
任何想法我怎样才能做到这一点?
【问题讨论】:
-
来自 Apple 的文档:
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.您应该创建自己的控制器(以模态方式呈现)。
标签: ios objective-c uialertcontroller