I am saving data from a server url to nsuserdefaults as User Detail.
Now at certain point, I want to update 2 keys of User Detail but i am unable to do that. No change occurs.
Here is my code:
NSDictionary *user;
NSMutableDictionary *userMut;
user=[[NSUserDefaults standardUserDefaults] objectForKey:@"User Detail"];
userMut=[user mutableCopy];
[userMut setValue:@"1" forKey:@"isMobileVerified"];
[userMut setValue:mobileNo.text forKey:@"mobile"];
Any help would be appreciated! Plz let me know how to update key values in a dictionary stored in nsuserdefaults if i am doing it wrong.