I am getting user details from .net web server.
I place all these in an array.
Now i need to place these array values in NSuserdefaults.
i try like this.
to store
NSUserDefaults *prefs=[NSUserDefaults standardUserDefaults];
[prefs setObject:resultData forKey:@"agentinfo"];
[prefs synchronize];
to get
NSUserDefaults *prefs=[NSUserDefaults standardUserDefaults];
[prefs arrayForKey:@"agentinfo"]
i am getting details like this
970,
Aditya2,
B,
JNTU1,
"Ram@gamil.com"
how can i get individual numbers 970,Aditya2…
Because i need to Assign them to label.
can any one pls help me.
Thank u in advance
stringForKeywill always returnnilif the object associated with the provided key is no string. TryarrayForKeyinstead.