更新时间:2022-05-28 01:18:17
这样做只会浪费CPU周期,也浪费用户的时间.
Doing so is just a waste of CPU cycles and a waste of the user's time.
应用终止后,系统将以完全自动且不可避免的方式回收该应用使用的所有资源.
When an app is terminated, all resources used by that app are reclaimed by the system in an entirely automatic and unavoidable fashion.
如果您需要在应用程序终止时发生某些事情,请使用应用程序委托的钩子执行此操作.但是不要依赖于此.用户可以一时强行重启设备或强行退出应用程序.
If you need something to happen at app termination, use the application delegate's hooks for doing so. But don't rely on that. A user may force reboot a device or force quit an application at whim.