Delete data when app is killed in the background.

前端 未结 3 684
误落风尘
误落风尘 2021-01-28 11:55

I have an app where I am saving data but when the app is killed in the background I have to delete all the saved data.

I tried using this method:

- (void         


        
3条回答
  •  佛祖请我去吃肉
    2021-01-28 12:52

    I know, I'm super late to the party but, if you can live with data "sticking around" until the next app launch you can delete/clear data in application(_:didFinishLaunchingWithOptions).

提交回复
热议问题