iOS development: UILabel recognizes HTML tags. The html returned in the background contains not only text but also image link addresses. How can I display the html as normal text and images?
大家讲道理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.