objective-c - iOS开发:UILabel识别HTML标签
習慣沉默
習慣沉默 2017-05-02 09:36:23
0
1
600

iOS开发:UILabel识别HTML标签。后台返回html,不仅有文字,还有图片链接地址,我该怎么把html显示成正常的文字和图片呢?

習慣沉默
習慣沉默

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!