Behaviour of threads when entering background in iOS multitasking

后端 未结 1 737
北荒
北荒 2021-01-18 21:46

While running some tests I\'ve noticed that when an app (with no background privileges, i.e. voip, gps, etc) enters the background state, any background threads (or concurre

1条回答
  •  被撕碎了的回忆
    2021-01-18 22:05

    When a non-multitasking app is quit, it is frozen in its current state and left in memory. However, if memory is low, the user closes it from the multitasking bar, or the device is shut down, the app will be terminated without warning. You can trust that an application returning from the background will continue as it was before, but you should save the state when entering the background in case the app is shut down.

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