I have a setting's bundle with some UI customization,
the thing is that if the app is closed and i change a setting, when i open it it is updated. But in iOS 4, if the app is on background and i change a setting, it doesn't updates at all until i close the app and reopen it.
My NSUSerDefaults reading code is something like:
NSUserDefaults *savedData = [NSUserDefaults standardUserDefaults];
NSInteger size = [savedData integerForKey:@"size"];
is on viewWillAppear, since this method should be called everytime the view is loaded, being that it is being started or coming from background.
There's a lot of NSUserDefaults code out there, but all there is missing is [savedData synchronize]; and this seems to be meant to update the defaults once you change them in your app, not the other way around (being changed in the setting, trying to retrieve them)
What am i missing here?