• 【iOS】swift-获取webView的高度


        func webViewDidFinishLoad(webView: UIWebView) {

            let webHeightStr = webView.stringByEvaluatingJavaScriptFromString("document.body.scrollHeight")

            let webHeight = CGFloat((webHeightStr! as NSString).floatValue)

            manageWebView.height =  webHeight

            tableView.tableFooterView = nil

            tableView.tableFooterView = manageWebView

            tableView.reloadData()

        }

    核心代码就是红色的部分

  • 相关阅读:
    1370
    1336
    1298
    1289
    Buy Tickets(poj2828)
    The Balance(poj2142)
    1067
    Lightoj1011
    1319
    Back to Underworld(lightoj 1009)
  • 原文地址:https://www.cnblogs.com/melons/p/5791979.html
Copyright © 2020-2023  润新知