Hi i want to update data for key but it still stays the same my code is:
NSUserDefaults *userNamePrefs = [NSUserDefaults standardUserDefaults];
[userNamePrefs removeObjectForKey:@"mykey"];
[userNamePrefs setObject:@"myNewStringValue" forKey:@"mykey"];
but it does not works it does not remove object and ignore to add new value for key, please help what am i missing
thanks
Try calling
after you made your updates