sar*_*unw 3 ios uilocalnotification
我想自己尝试一下,但需要一个月的时间才能确定它有效.有没有人试过这个?
NSDate *fireDate = // Date I want to repeat, in this case 31 may
localNotification.fireDate = fireDate;
localNotification.repeatInterval = NSMonthCalendarUnit;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
Run Code Online (Sandbox Code Playgroud)
我希望它能在每个月的最后一天发出警报.这是一种方法吗?如果我在30天的月份安排它,第二天是4月的31天月 - > 5月我该怎么办,因为我只能将它设置为4月30日(也是2月28日和29日的问题)
在玩UILocalNotification
了一段时间之后我得到了一个答案,如果你想让它每隔几个月重复一次,只需将它设置为1月31日,repeatInterval
NSMonthCalendarUnit
它将重复每个月的最后一天
归档时间: |
|
查看次数: |
967 次 |
最近记录: |