Saving and retriving value into NSUserDefault in IPhone
<p>Hi Some Body Give Me an Idea.</p>

<p>I am useing <code>NSUserDefault</code> To saving and retriving value for Saving Code is.</p>

<pre><code>dataDict_=[[NSMutableDictionary alloc]init];
    [dataDict_ setObject:[nameText_ text] forKey:@"Name"];
    [dataDict_ setObject:[linkText_ text] forKey:@"Link"];
    NSUserDefaults *userDefault=[NSUserDefaults standardUserDefaults];
    [userDefault setObject:dataDict_ forKey:@"Dict"];
    [[NSUserDefaults standardUserDefaults]synchronize];
    [dataDict_ release];
</code></pre>

<p>And For retriving Code is</p>

<pre><code>NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults];
    NSMutableDictionary *favourites = [[standardUserDefaults objectForKey:@"Dict"]   mutableCopy];
</code></pre>

<p>Now the issue is with the help of this code i am able to save and retrive data for one time If i save once again at that time my new value is overlaping to last value.</p>

<p>I need to save a value from other page in <code>NSUserDefault</code> and retrive on other page and add in array and display on table.</p>

<p>I want to add 10 name to <code>NSUserDefault</code> one by one and retrive from userdefault and display.</p>

<p>But With the help of this code only new data i can retrive that meand last data get overlaps to new data.</p>

<p>Please give me the solution how to resolve this.</p>

<pre><code>NSLog(@"The dict value is %@",favourites);
</code></pre>
