正文
ios webView 放大网页解决/input 获得焦点focus 网页放大 解决
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
新手遇到的问题:
终于找到原因,各种HTML viewport 都试过 setScalePageToFit 也试过,webViewDidFinishLoad加JS代码,动态算webView.scrollView.zoomScale等都试过
原因是:从控件拖的webView frame没设置的缘故
把拖的webView控件删除,从代码 [[UIWebView alloc] initWithFrame:CGRectMake(.....)
然后添加到当前view
self.view addSubview:webView
===========================
觉得好的朋友,请使用我的
2016最新【Uber优惠码】 ajw0e 价值30元!
搞定!