In iOS 13, what events do I get when the user swipes my app up in the app switcher?

后端 未结 2 1937
长情又很酷
长情又很酷 2020-12-21 00:32

I\'m finding it extraordinarily difficult to categorize and account for what events I get (or don\'t get) when the user swipes my app up in the app switcher on iOS 13. This

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-21 01:08

    in my case, I want to save user state when the app is terminated by the user or the system, applicationWillTerminate(_:) does not being called for me most of the time.

    I achieved what I want by using sceneWillResignActive(_ scene: UIScene)

提交回复
热议问题