Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone - Changing app settings while application is running in the background

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

like image 955
Sjblack Avatar asked Jul 21 '10 11:07

Sjblack


1 Answers

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.

like image 143
Ortwin Gentz Avatar answered Oct 30 '22 17:10

Ortwin Gentz