gpt4 book ai didi

ios - 如何在 UILocalNotification 中谓词 userinfo.key

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:18:49 24 4
gpt4 key购买 nike

enter image description here

  • 在我的应用程序中,用户设置工作日要完成的任务列表。所以我当用户打开应用程序时,我会在每个星期五重新安排每个任务。所以我想知道剩下的通知列表。
  • so What I Need 想要谓词 Timeid 或 weekday from“ScheduleArray”。

最佳答案

只需使用:

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"userInfo.WeekDay = %d", yourWeekDay];

或:

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"userInfo.Timeid = %d", yourTimeID];

然后:

NSArray *notifications = [[[UIApplication sharedApplication] scheduledLocalNotifications] filteredArrayUsingPredicate:predicate];

关于ios - 如何在 UILocalNotification 中谓词 userinfo.key,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22169920/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com