Reusing UIWebView is causing crashes

后端 未结 5 1558
礼貌的吻别
礼貌的吻别 2021-01-02 21:46

I\'ve read that reusing UIWebViews is kind of a bad practice. Some code I inherited at work is pushing a variety of content to a UIWebView. Powerpoints, Word documents, and

5条回答
  •  情深已故
    2021-01-02 22:26

    Are you using [webview stopLoading]; before loading another request? What you might need to do is cancel or stop the current loading before trying to load a different one. The other option being restrict the user input.

提交回复
热议问题