How to Show custom Emojis Url link in Labels iOS

半城伤御伤魂 提交于 2019-12-13 21:47:02

问题


How to show Emojis url link in label. Emojis Unicode format is showing properly but when we show emojis url link its not showing its show same URL link.

I am using this code for showing Emojis:- NSString *html = msCommentObj.mCommentText;

NSAttributedString *attr = [[NSAttributedString alloc] initWithData:[html dataUsingEncoding:NSUTF8StringEncoding]
                                                                    options:@{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType,
                                                                              NSCharacterEncodingDocumentAttribute:@(NSUTF8StringEncoding)}
                                                         documentAttributes:nil
                                                                      error:nil];
NSString *finalString = [attr string];
descriptionCommentsLbl.text = finalString;*

Here is the Emojis Response :- True.  

https://mysponsers.com//img/emoticons/47.png https://mysponsers.com//img/emoticons/41.png

来源:https://stackoverflow.com/questions/44364002/how-to-show-custom-emojis-url-link-in-labels-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!