現(xiàn)在我有一需求,把獲取到的網(wǎng)絡(luò)圖片拼接到獲取的html字符串中狂芋,使網(wǎng)絡(luò)圖片能在webview上顯示榨馁,需拼接在html字符串中:
@""添加你的string""
NSString *image = [NSString stringWithFormat:@"\"http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\""];
html = [NSString stringWithFormat:@"<body><img src = %@/> <h4 >%@</h4> <p>%@<p></body>",image,title,body];`