iOS 显示html标签富文本

NSAttributedString *attributedString = [[NSAttributedString alloc] initWithData:[@"Gradually add the olive oil 哈哈哈哈哈哈哈哈哈哈 while running the blender slowly." dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType } documentAttributes:nil error:nil];

你可能感兴趣的:(iOS上架)