How to determine iFrame finished loading in UIWebView

前端 未结 3 1468
日久生厌
日久生厌 2021-02-06 08:06

In my app, I need a way to tell when my webview is finished loading. It is very easy to do that if content is html. However, my content source is javascript with iFrame inside,

3条回答
  •  清酒与你
    2021-02-06 08:44

    (If it is the same domain) you can call a function (in the parent) from the iframe.

    top.iFrameLoaded();
    

提交回复
热议问题