[myWebVie stringByEvaluatingJavaScriptFromString:@"document.getElementById('n1').scrollIntoView()"];
html代码:
<a id="n1"></a>
这样就能够实现跳转
原来就是,ios通过用javascript代码来控制uiwebview中的html代码;
原文http://blog.163.com/fuxiaohui@126/blog/static/131745826201183010352452/