【问题标题】:Schedule UILocalNotifications for a particular week of a month为一个月的某一周安排 UILocalNotification
【发布时间】:2013-01-04 08:56:43
【问题描述】:

我正在我的项目中安排UILocalNotifications。目前我正在安排每天的通知。现在客户要求做一些特定的场景,比如每隔一周安排一次。有没有办法做到这一点?请任何人提出解决方案。

提前致谢

【问题讨论】:

    标签: iphone objective-c nsdate uilocalnotification nsdatecomponent


    【解决方案1】:

    here 提供的答案可以根据您的需要进行调整。

    localNotification.repeatInterval = NSDayCalendarUnit; 更改为localNotification.repeatInterval = NSWeekCalendarUnit;(在使用 NSDateComponents 将其提取出来之后)将是一个开始。

    【讨论】:

      【解决方案2】:

      使用 Ekeventkit 商店在特定日期/日期等显示警报。

      你应该通过Apple documentation

      【讨论】:

        猜你喜欢
        • 2021-10-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2010-12-20
        相关资源
        最近更新 更多