本文介绍了AlertController中的Html文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在UIAlertController中显示HTML文件的内容吗?



我有一个服务条款的文本,我已经将它格式化为一个html文件。我希望能够在用户进入应用程序时在AlertView中显示此内容,以便他们必须单击确定。

解决方案

您可以使用可以渲染完整html页面的模式实例。
p>

Can I display the contents of an html file inside an UIAlertController?

I have a text for a terms of service and I already have it formatted within an html file. I would like to be able to display this in an AlertView when the user enters the app, so that they would have to click Ok.

解决方案

You can use Modal Instance in which you can render the complete html page.https://angular-ui.github.io/bootstrap/

这篇关于AlertController中的Html文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 13:09