title: How to write a data in plist?
body: <p>I have followed this answer to write data to the plist</p>
  
  <p><a href="https://stackoverflow.com/questions/905542/how-to-write-data-in-plist">How to write data to the plist?</a></p>
  
  <p>But so far my plist didn't change at all.</p>
  
  <p>Here is my code :-</p>
  
  <pre><code>- (IBAction)save:(id)sender
  {
      NSString *path = [[NSBundle mainBundle] pathForResource:@"drinks" ofType:@"plist"];
      NSString *drinkName = self.name.text;
      NSString *drinkIngredients = self.ingredients.text;
      NSString *drinkDirection = self.directions.text;
      NSArray *values = [[NSArray alloc] initWithObjects:drinkDirection, drinkIngredients, drinkName, nil];
      NSArray *keys = [[NSArray alloc] initWithObjects:DIRECTIONS_KEY, INGREDIENTS_KEY, NAME_KEY, nil];
      NSDictionary *dict = [[NSDictionary alloc] initWithObjects:values forKeys:keys];
      [self.drinkArray addObject:dict];
      NSLog(@"%@", self.drinkArray);
      [self.drinkArray writeToFile:path atomically:YES];
  }
  </code></pre>
  
  <p>Do I need to perform something extra?</p>
  
  <p>I am new to iPhone SDK so any help would be appreciated.</p>