1, if ([selfnextDayIsComing]) {
shouldNumber = trueNumber = 0;
[TTCacheUtilwriteObject:[NSStringstringWithFormat:@"%d",trueNumber] toFile:@"trueNumber.plist"];
}
shouldNumber = 0;
for (int i=0; i<[totalNotificationArray count]; i++) {
NotificationItem *item=[totalNotificationArrayobjectAtIndex:i];
int period = [self changeToMinisecond:item.time];
if (period < 0) {//小于现在的这个时刻
shouldNumber ++;
}
}
2,
shouldNumber = 0;
for (int i=0; i<[totalNotificationArray count]; i++) {
NotificationItem *item=[totalNotificationArrayobjectAtIndex:i];
int period = [self changeToMinisecond:item.time];
if (period < 0) {//小于现在的这个时刻
shouldNumber ++;
}
}
if ([selfnextDayIsComing]) {
shouldNumber = trueNumber = 0;
[TTCacheUtilwriteObject:[NSStringstringWithFormat:@"%d",trueNumber] toFile:@"trueNumber.plist"];
}