PLIST UPDATING CHANGING THE KEY FROM ITEM O TO SOME NAME 
<p>every one </p>

<p>i have a problem with my plist ,i was able to write the data to plist which is type Dictionary ,and consists of 4 string items , and my problem is i want to change the dictionary key value to some example: 500k but it is showing default item 0, i want to change this to 500k</p>

<p>below is the code i implemented.</p>

<pre><code>NSMutableDictionary *nameDictionary = [NSMutableDictionary dictionary];


[nameDictionary setValue:Name  forKey:@"fullName"];
[nameDictionary setValue:Salary  forKey:@"salary"];
[nameDictionary setValue:Experience forKey:@"expreience"];
[nameDictionary setValue:Designation forKey:@"designation"];



NSMutableArray *plist = [NSMutableArray arrayWithContentsOfFile:@"/Users/nikhil/Desktop/secondProgram/secondProgram/new2.plist"];
NSLog(@"wat is in plist %d",[plist count]);

if (plist == nil)
plist = [NSMutableArray array];


[plist addObject:nameDictionary];
[plist writeToFile:@"/Users/nikhil/Desktop/secondProgram/secondProgram/new2.plist" atomically:YES];
</code></pre>

<p>and in plist is show ing </p>

<blockquote>
  <p>item 0  | Dictionary | (4items)</p>
</blockquote>

<p>i want to change it to </p>

<blockquote>
  <p>500K    | Dictionary | (4items)</p>
</blockquote>

<p>Please help me ....</p>
