在webView加载完成的代理方法中添加一下代码
[self.webView stringByEvaluatingJavaScriptFromString:@"function assignImageClickAction(){var imgs=document.getElementsByTagName('img');var length=imgs.length;for(var i=0;i<length;i++){img=imgs[i];img.onclick=function(){window.location.href='image-preview:'+this.src}}}"];
[self.webView stringByEvaluatingJavaScriptFromString:@"assignImageClickAction();"];
在代理方法中拦截即可