NSInternalInconsistencyException with NSUserDefaults when using method setValue: forPath
问题 My code is as follows: NSMutableDictionary *configure = [[NSUserDefaults standardUserDefaults] objectForKey:@"configure"]; if (!configure){ configure = [NSMutableDictionary dictionary]; [configure setValue:[NSMutableDictionary dictionary] forKeyPath:@"select"] ; [configure setValue:[NSMutableDictionary dictionary] forKeyPath:@"select.around"]; [configure setValue: @"All" forKeyPath:@"select.around.name"]; [[NSUserDefaults standardUserDefaults] setObject:configure forKey:@"configure"]; [