Last Updated: February 25, 2016
·
1.167K
· rohitkotian

iOS 5.1 bug with WebView

Seen the most bizarre bug on iOS 5.1.

If you open a UIWebView, clear the NSDefaults (I mean delete the file completely) and then load the UIWebView again, it crashes the app.

One way to fix this is to remove only those keys which you have saved in defaults.

Source:
http://stackoverflow.com/questions/9679163/why-does-clearing-nsuserdefaults-cause-exc-crash-later-when-creating-a-uiwebview