如何在标签iOS

时间:2017-06-05 07:38:57

标签: ios uilabel stack-overflow nsattributedstring emoji

enter image description here如何在标签中显示Emojis网址链接。 Emojis Unicode格式正确显示,但是当我们显示emojis url链接时,它没有显示其显示相同的URL链接。

我使用此代码显示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;*

这是Emojis的回应: -      真正。

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

0 个答案:

没有答案