//存储
NSUserDefaults
*userDefaults = [
NSUserDefaults
standardUserDefaults
];
[userDefaultssetObject:@([[NSDatedate]timeIntervalSince1970])forKey:"someKey"];
//读取
NSUserDefaults
*userDefaults = [
NSUserDefaults
standardUserDefaults];
NSString
*oldTimeString = [userDefaults
objectForKey
:"someKey"
];
//iOS 8之前通常要做同步操作,就是把缓存数据 同步到硬盘中