iOS development: UILabel recognizes HTML tags
習慣沉默
習慣沉默 2017-05-02 09:36:23
0
1
655

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?

習慣沉默
習慣沉默

reply all(1)
大家讲道理

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template