iphone - Settings doesn't update on iOS 4 -


I have settings bundled with some UI optimizations,

this is the thing if the app is off And I change a setting, when I open it, it is updated. But in iOS 4, if the app is on the background and I change a setting, it is not updated until I close the app and open it again.

My NSUSerDefaults code is something like this: NSUserDefaults * Saved Data = [NSUserDefaults StandardUserDefaults]; NSInteger Size = [Saved Data Finish: @ "Size"];

WillAppear on the scene, since this method should be loaded every time the idea is because it is starting or coming from the background.

There are so many NSUserDefaults that there is a code from it, but there is no one in it [synchronized saved data]; And it means updating by default after applying it to your app, not in other way (not being changed in settings, trying to retrieve them)

I'm here What do you remember

viewWillAppear is not said when the app comes from the background, the fact Regardless of that, the view will appear ...

So you must call your update methods in your app representative from applicationWillEnterForeground .

View

Comments