Why does clearing NSUserDefaults cause EXC_CRASH later when creating a UIWebView?

前端 未结 4 1052
误落风尘
误落风尘 2020-12-15 03:36

Before I begin, I should tell you that this only happens in iOS 5.1. Before the most recent update, this had never happened and it still does not happen on any othe

4条回答
  •  旧巷少年郎
    2020-12-15 04:20

    Simpler it will be to use the code below:

    [self saveValue:@"" forKey:@"WebKitLocalStorageDatabasePathPreferenceKey"];
    [[NSUserDefaults standardUserDefaults] synchronize];
    

    It is easier.

提交回复
热议问题