Store a value beyond applicationWillTerminate

前端 未结 3 728
眼角桃花
眼角桃花 2020-12-12 06:39

I have searched in Apple\'s iOS dev center but couldn\'t find anything quite right. Here\'s my problem:

I have an app that uses CoreData with several entities. The d

3条回答
  •  伪装坚强ぢ
    2020-12-12 07:13

    Swift 2.X Version

    NSUserDefaults.standardUserDefaults().setObject(NSDate(), forKey: "Last_Modified")
    

提交回复
热议问题