When an app crashes does either the 'applicationWillTerminate' or 'applicationDidEnterBackground' get called?

前端 未结 1 2015
说谎
说谎 2021-01-18 10:43

When an app crashes does either the \'applicationWillTerminate\' or \'applicationDidEnterBackground\' get called or am I hoping for too much?

Apple\'s documentation

相关标签:
1条回答
  • 2021-01-18 10:54

    When an app crashes, it usually gets killed immediately.

    No delegates or methods or delegate methods get called after that, since the being-killed app is probably in a really bad state and whatever data you might want to write out could be corrupted and non-usable.

    0 讨论(0)
提交回复
热议问题