简体   繁体   中英

Setting HTML text for UILabel in IB

Getting HTML text from back-end, now i am manually removing and formatting the tags and adding bullet points for <li> tags.

if any other <p> tag or <br> tag is coming means then i am removing it. Checked RTLabel , Unable to use this in Interface builder.

Now tried TTTAttributedLabel , i am able to use this in IB but it is not recognizing the HTML tags.

is there any other lightweight library available?

You can use RTLabel to display HTML text instead of UILabel. Please check below link for more details :-

https://github.com/honcheng/RTLabel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM