App restarts when woken from background

后端 未结 2 745
你的背包
你的背包 2021-02-10 02:17

G\'day iOS Guru\'s,

I have searched extensively for an answer, but can\'t find one (I bet the first response to my question will be to another similar question, but I ca

2条回答
  •  無奈伤痛
    2021-02-10 02:44

    in your AppDelegate.m

    - (void)applicationDidEnterBackground:(UIApplication *)application
    {
        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
        // Save your data
    }
    

提交回复
热议问题