那个闹铃 状态记忆好不蛋疼,其实是记住了的,
if (self.user) {//加载个人信息的 过程在 appdelegatge里面,
user = self.user;
[selfisShouldUpdate];
}else{
[selfloadPersonnalInfo:nil];//如果appdelegate加载失败,才会在本页面进行加载个人信息
}
-(void)isShouldUpdate
{
//根据更新时间来判断的
NSUserDefaults *userDefault = [NSUserDefaultsstandardUserDefaults];
nowTimeInterval =[[userDefault valueForKey:@"remind_uptime"]longLongValue];
TTLog(@"remind_uptime from personnal message........%lld",user.remind_uptime);
TTLog(@"remind_uptime from cache.....%lld",nowTimeInterval);
if (nowTimeInterval != user.remind_uptime) {
[selfloadNotificationList];//从网络加载
[userDefault setValue:[NSString stringWithFormat:@"%lld",user.remind_uptime] forKey:@"remind_uptime"];
}
}