现在我有一需求,把获取到的网络图片拼接到获取的html字符串中,使网络图片能在webview上显示,需拼接在html字符串中:
@""添加你的string""
NSString *image = [NSString stringWithFormat:@"\"http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\""];
html = [NSString stringWithFormat:@"<body><img src = %@/> <h4 >%@</h4> <p>%@<p></body>",image,title,body];`