solution
Well after spending more than a day on this issue i found a simple workaround that works perfectly.
I simply check if the appDefaults returns null, if it does i set the default value (in code) and then call the appDefaults synchronize afterwards.
That solves the issue.
if ([appDefaults stringForKey:@"my_key"] == nil){
[appDefaults setObject:@"my default value" forKey:@"my_key"];
}
NSString * val = [appDefaults stringForKey:@"my_key"];
[appDefaults synchronize];
good luck guys...
|