Reload application data when the app comes into foreground?

前端 未结 4 483
轮回少年
轮回少年 2021-01-30 15:31

I\'m new to iPhone development. I\'m building an app that loads data from a local sqlite3 DB in

-   (BOOL)application:(UIApplication *)application didFinishLaunch         


        
4条回答
  •  滥情空心
    2021-01-30 15:55

    I think that is the delegate of UIApplication:

    - (void)applicationWillEnterForeground:(UIApplication *)application
    

    In iOS 4.0 and later, this method is called as part of the transition from the background to the active state. You can use this method to undo many of the changes you made to your application upon entering the background. The call to this method is invariably followed by a call to the applicationDidBecomeActive: method, which then moves the application from the inactive to the active state.

提交回复
热议问题