如何在标签iOS中显示自定义Emojis Url链接

在这里输入图像说明 如何在标签中显示表情符号链接。 表情符号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

Interesting Posts