UILocalNotification 重复 [英] UILocalNotification Repeat
本文介绍了UILocalNotification 重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在每周日和周一重复
I want repeat on the Every Sunday and Monday
我怎样才能做到这一点?
How can I achieve this?
推荐答案
尝试设置 2 个通知,一个是星期日 fireDate
,另一个是星期一 fireDate
并设置NSWeekCalendarUnit
Try setting 2 notifications, one with a Sunday fireDate
and the other with a Monday fireDate
and set both repeatIntervals to NSWeekCalendarUnit
这篇关于UILocalNotification 重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文