Stop video in UIWebView

前端 未结 6 1746
别那么骄傲
别那么骄傲 2020-12-28 21:29

In my iPad App I have a modal view (UIViewController with modal presentation style UIModalPresentationPageSheet)

Inside the view is a UIWeb

6条回答
  •  长情又很酷
    2020-12-28 21:44

    I saw there are many suggestions with loading blank page. That is really bad approach.

    It will cause your webview to be blank if, let say you push you another view on top of it.

    Most simple solution is to reload the view with:

    Swift

    webView.reload()
    

    Obj-C

    [webView reload]
    

提交回复
热议问题