如何在标签中显示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