tags:

views:

52

answers:

1

Hi There

The problem i am having is if i make changes to the application settings while the application is running in the background the changes aren't available in my app until it is restarted. Am i missing something or is this way it is?

Thanks very much. Sj

+3  A: 

Use

-(void)applicationWillEnterForeground:(UIApplication *)application

or

-(void)applicationDidBecomeActive:(UIApplication *)application

in your App delegate to reconfigure your app. The first is sent when your app resumes after being in the background. The second is sent both on resume and after the first time launch.

See the chart in this article for details.

Ortwin Gentz
Cheers - Calling [[NSUserDefaults standardUserDefaults] synchronize] in one of those did the trick! Sj
Sjblack