how to get individual objects from NSUserdefaults Array
<p>I am getting user details from .net web server.</p>

<p>I place all these in an array.</p>

<p>Now i need to place these array values in NSuserdefaults.</p>

<p>i try like this.</p>

<p>to store </p>

<pre><code>NSUserDefaults *prefs=[NSUserDefaults standardUserDefaults];
    [prefs setObject:resultData forKey:@"agentinfo"];
    [prefs synchronize];
</code></pre>

<p>to get </p>

<pre><code>NSUserDefaults *prefs=[NSUserDefaults standardUserDefaults];
[prefs arrayForKey:@"agentinfo"]
</code></pre>

<p>i am getting details like this</p>

<pre><code> 970,
    Aditya2,
    B,
    JNTU1,
    "Ram@gamil.com"
</code></pre>

<p>how can i get individual numbers 970,Aditya2...</p>

<p>Because i need to Assign them to label.</p>

<p>can any one pls help me.</p>

<p>Thank u in advance</p>
