【发布时间】:2014-02-16 19:17:13
【问题描述】:
就像我们在UIImageview 中使用SDWebImage 设置图像
[imageview.setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]
placeholderImage:[UIImage imageNamed:@"placeholder.png"]
completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) {... completion code here ...}];
有什么办法可以在<img>标签的UIWebview中使用SDWebImage
NSString *htmlString =@"<html lang=\"en\"><img src='http://cdn.tutsplus.com/mobile/uploads/legacy/iOS-SDK_UIView-Animation/Animate-Icon.png' /> </div><div id=\"content\"><div>BlahBlahBlah LoremIpsum</div><br></body>"
[WebView loadHTMLString:descriptionHT baseURL:nil];
提前致谢:)
【问题讨论】:
标签: ios ios7 uiwebview sdwebimage