[myWebVie stringByEvaluatingJavaScriptFromString:@"document.getElementById('n1').scrollIntoView()"];
html代碼:
<a id="n1"></a>
這樣就能夠實現跳轉
原來就是,ios通過用javascript代碼來控制uiwebview中的html代碼;
原文http://blog.163.com/fuxiaohui@126/blog/static/131745826201183010352452/