在 UILabel iphone 中显示 HTML 文本 [英] Display HTML text in UILabel iphone
本文介绍了在 UILabel iphone 中显示 HTML 文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到来自网络服务的 HTML 响应下面是我收到的 HTML 回复
I am getting a HTML Response from a webservice Below is the HTML I am getting in response
<p><strong>Topic</strong>Gud mrng.</p>
<p><strong>Hello Everybody</strong>: How are you.</p>
<p><strong>I am fine</strong>: 1 what about you.</p>
我需要在 UILabel 中显示文本.
I need to display the text in UILabel.
请帮忙
推荐答案
使用 RTLabel 库转换 HTML 文本.我已经使用过几次了.有用.这是库的链接和示例代码.
Use RTLabel library to convert the HTML text. I have used it several times. It works. Here is link to the library and a sample code.
https://github.com/honcheng/RTLabel.
希望我有所帮助.
这篇关于在 UILabel iphone 中显示 HTML 文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文