【发布时间】:2012-03-20 09:06:40
【问题描述】:
如果有人遇到同样的问题,请帮忙... 我有 sqlite db,在 NSData 中有图像。我需要在 uiwebview 中插入图像,但是……图像不显示……
NSString *html = [NSString stringWithFormat:
@"<html> <head>"
@"<style> body { font-family:Verdana;font-size:13px;}</style>"
@"</head>"
@"<img src=\"%@\" />"
@"<br/>%@"
@"</body> </html>", datePicture,strDescription]] ;
然后我将它插入 UIWebview:
[descripWebView loadHTMLString:html baseURL:nil];
【问题讨论】:
-
NSDate 中的图片???你是说 NSData 吗?