How to stop loading the UIWebView

前端 未结 3 1749
被撕碎了的回忆
被撕碎了的回忆 2021-01-18 10:11

I created number of UIWebviews and add it to my view. And gave load request. I want to stop loading the uiwebview with tag=10. How can this implement?

3条回答
  •  滥情空心
    2021-01-18 10:39

    You can write webView stopLoading method in viewWillDisappear

    -(void)viewWillDisappear:(BOOL)animated
    {
        if([webView isLoading])
        {
            [webView stopLoading];
        }
    }
    

提交回复
热议问题