iOS Safari memory leak when loading/unloading HTML5 <video>
问题 I've developed an iPad app with several UIWebViews that takes the following HTML and JavaScript. Since the iPad can only play one video at a time, I don't load the video until the particular web view is focused. This is done by calling the stringByEvaluatingJavaScriptFromString method on the UIWebView, sending in a call to the JS method getFocus() . Similarly, when the web view is no longer needed I call lostFocus() to unload the video. This enables another UIWebView to play another video. So