Ios 如何为具有uilocalnotification的单元格指定单独的颜色

Ios 如何为具有uilocalnotification的单元格指定单独的颜色,ios,uilocalnotification,Ios,Uilocalnotification,我已经像下面那样设置了LocalNotification,工作正常。。 现在我的问题是..如果我打开以查看通知,我想为我已收到通知的UITableView中的单元格提供一些颜色..很明显..我正在执行帐单提醒项目,并且正在完美地设置提醒..现在我想为收到通知的帐单提供单独的颜色。。 请帮帮我.“ttt”是最后插入的账单行 一些声明 UILocalNotification *localNotification = [[UILocalNotification alloc] init]; localN

我已经像下面那样设置了
LocalNotification
,工作正常。。 现在我的问题是..如果我打开以查看通知,我想为我已收到通知的
UITableView
中的单元格提供一些颜色..很明显..我正在执行帐单提醒项目,并且正在完美地设置提醒..现在我想为收到通知的帐单提供单独的颜色。。 请帮帮我.“ttt”是最后插入的账单行

一些声明

UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:180];
localNotification.alertBody = [NSString stringWithFormat:@"%@",sometext];
localNotification.soundName = UILocalNotificationDefaultSoundName;

id var = [NSNumber numberWithInteger: ttt];
[localNotification.userInfo setValue:var forKey:@"id"];

[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];

有些语句

您必须在这里应用简单的编程逻辑。
UILocalNotification *localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:180];
localNotification.alertBody = [NSString stringWithFormat:@"%@",sometext];
localNotification.soundName = UILocalNotificationDefaultSoundName;

id var = [NSNumber numberWithInteger: ttt];
[localNotification.userInfo setValue:var forKey:@"id"];

[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
只需为特定余数设置一些标志值,在tableview单元格中加载时,只需检查单元格中加载的余数是否具有localnotification。 并相应地更改单元格的颜色

更多:如果要检查剩余部分是否已过期,可以执行以下步骤:

一,。设置剩余日期时,只需存储该日期

二,。加载单元格时: 将该特定余数的保存日期与当前日期进行比较

如果(剩余日期>当前日期)

设置绿色图像或任何指示remaider尚未过期的内容

否则

设置红色图像,表示reamainder已过期

附言:使用逻辑