Last Updated: September 09, 2019
·
839
· bjhomer

UIWebView crasher

If a UIWebView starts loading a page and then is removed from the window before it finishes loading, it seems it can be left with a dangling reference to a layer somewhere. So if you're removing a UIWebView from the view hierarchy and planning to re-insert it later, be sure to call -stopLoading when it's removed.

This ProTip brought to you by 5 hours of painful debugging.