title: how change values in NSdictionary?
body: <p>How change value "level 1-2 closed" on "level 1-2 open"?
  I have to delete it and add new value? or simply overwrite?
  How can I do it?</p>
  
  <p>Thanks</p>
  
  <pre><code>   NSDictionary *dict = [[NSUserDefaults standardUserDefaults] dictionaryForKey:@"key_open_levels"];
  
           dict  = [NSDictionary dictionaryWithObjectsAndKeys:
                      @"open", @"level 1-1",
                      @"closed", @"level 1-2",
                      @"closed", @"level 1-3",
                      @"closed", @"level 1-4",
                      @"closed", @"level 1-5",
                      @"closed", @"level 1-6",
                      @"closed", @"level 1-7",
                      @"closed", @"level 1-8",
                      @"closed", @"level 1-9",
                      @"closed", @"level 1-10", nil];
  
             // NSString *customerDict ;
              [[NSUserDefaults standardUserDefaults] setValue:dict forKey:@"key_open_levels"];
  
  
             if ([[dict valueForKey:@"level 1-2"] isEqualToString:@"closed" ]){
  
             //what should I write here?
  
             }else{
  
  }
  </code></pre>