iOS开发:UILabel识别HTML标签。后台返回html,不仅有文字,还有图片链接地址,我该怎么把html显示成正常的文字和图片呢?
大家讲道理2017-05-02 09:38:23
If you load it as a web page, you can use UIWebView to load it.
If you parse it yourself, for example, the background returns data in JSON format, you need to get the image and text fields inside, and then the image address can be directly loaded and displayed using the third-party framework SDWebImage.
Hope it helps.