Hi,
I'd like to know if there is a way of checking whether the values set in my Settings.bundle are default values, and if they are, give a warning.
Would I be correct in doing this
‑(void)ViewDidLoad {
if ([[NSUserDefaults standardUserDefaults] stringForKey:@"textEntry_key"] == @"" ||[[NSUserDefaults standardUserDefaults] stringForKey:@"textEntry_key2"] == @"") {
UIAlertView *settings = [[UIAlertView alloc] initWithTitle=@"Configuration Error" message=@"Default values present in application settings. Please configure." delegate=self cancelbuttontitle = nil otherbuttontitles=@"Configure", nil];
[settings show];
[settings release];
}
What I don't know to do from here is to link that button (Configure - otherbuttontitles) to the application configuration in settings.app.
Thanks :)