if (![TTCacheUtilobjectFromFile:@"alarm.plist"] && alarmArray.count == 0) {//第一次读取缓存
}
else if (![TTCacheUtil objectFromFile:@"alarm.plist"] && alarmArray.count > 0) {//第一次加载到数据
[TTCacheUtilwriteObject:alarmArraytoFile:@"alarm.plist"];
[SharedAppDelegateinitLocalNotification];
}else{
[TTCacheUtilremoveObjectForName:@"alarm.plist"];
[TTCacheUtilwriteObject:alarmArraytoFile:@"alarm.plist"];
if (alarmArray.count > 0 && notificationChanged) { //只有设置提醒页面变化了,才会被调用,从home过来的,不会调用了
[SharedAppDelegateinitLocalNotification];
notificationChanged = NO;
}
}