Store a value beyond applicationWillTerminate

前端 未结 3 714
眼角桃花
眼角桃花 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:05

    Sounds like you want the NSUserDefaults storage. It's used like a dictionary, but persists:

    [[NSUserDefaults standardUserDefaults] setObject:myDate forKey:@"LastUpdateTime"];
    

提交回复
热议问题