【发布时间】:2012-06-10 13:33:17
【问题描述】:
我有一个 uiwebview,我加载了以下 NSString 文本
NSString *htmltext=@"Likes: @Amore , @George , @Morfy ...";
然后我将它加载到 uiwebview 像这样定义十六进制颜色
[wholikes loadData:[[NSString stringWithFormat:@"<html> <head><style>BODY { font-family: 'Times New Roman'; font-size: 14px; word-wrap: break-word}</style></head><body text=\"#645a49\">%@</body></html>", htmltext] dataUsingEncoding:NSUTF8StringEncoding]
MIMEType:@"text/html"
textEncodingName:@"UTF-8"
baseURL:nil];
有没有办法更改部分 uiwebview 文本?我希望“喜欢:”以另一种颜色呈现。
任何帮助表示赞赏。
【问题讨论】:
标签: objective-c uiwebview