Reload application data when the app comes into foreground?

前端 未结 4 478
轮回少年
轮回少年 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:50

    You can exit() your application when iOS notifies it that it should run in the background like so:

    - (void)applicationDidEnterBackground:(UIApplication *)application {
      exit(0);
    }
    

提交回复
热议问题