ios webview

//#pragma mark - UIWebView Delegate Methods
-(void)webViewDidFinishLoad:(UIWebView *)webView{
    //获取到webview的高度
    CGFloat height = [[_webView stringByEvaluatingJavaScriptFromString:@"document.body.offsetHeight"] floatValue];
    _webView.frame = CGRectMake(_webView.frame.origin.x,_webView.frame.origin.y,kScreenW, height+20);
}

ios webview

上一篇:axios 使用说明


下一篇:安卓进阶之自定义View