Hi Guys and Gals,
I am saving some user settings using NSUserDefaults.
in viewdidload, I retrieve the settings, and apply. Now, if it is a first installation, then this setting does not exist. So, how to check if a setting exist or not?
I am using this code
int FCOLOR = [[NSUderDefaults standardUserDefaults] integerForKey:@"MyColor"];
Is there a way to detect if "MyColor" exist or not? Or I just have to manually check for the value (valid or nonvalid)?
Post edited by rocotilos on
0 · ·