Objective c 我是否可以自定义UILocalNotification重复间隔(即仅限工作日?)

Objective c 我是否可以自定义UILocalNotification重复间隔(即仅限工作日?),objective-c,weekday,localnotification,uilocalnotification,Objective C,Weekday,Localnotification,Uilocalnotification,我希望能够安排UILocalNotification在每天的同一时间重复,但仅限于工作日(无周六或周日)。使用UILocalNotification的repeat interval功能可以实现这一点吗?或者,这是我创建某种类的唯一选项,该类处理时间和日期,并确定何时提前安排(多个)通知 提前谢谢。是的,这是可能的。将UILocalNotification的repeatInterval设置为NSWeekdayCalendarUnit 给你

我希望能够安排UILocalNotification在每天的同一时间重复,但仅限于工作日(无周六或周日)。使用UILocalNotification的repeat interval功能可以实现这一点吗?或者,这是我创建某种类的唯一选项,该类处理时间和日期,并确定何时提前安排(多个)通知


提前谢谢。

是的,这是可能的。将UILocalNotification的
repeatInterval
设置为
NSWeekdayCalendarUnit

给你