UILocalNotification结束日期 [英] UILocalNotification end date
问题描述
我想知道是否可以设置 UILocalNotification
的结束日期?
I wonder if it's possible to set end date for UILocalNotification
?
我希望每天都能通知我的通知( NSDayCalendarUnit
)但我有结束日期,我无法跨越(截止日期),例如我每天拍摄一张我日益增长的小胡子的照片一年,一年之后就不会显示通知。
I want my notification to fire everyday (NSDayCalendarUnit
) but I have end date which I cannot cross (deadline) e.g. I'm taking a photo of my growing mustache everyday for one year period and after a year notifications won't be displayed.
我希望你有我的观点。 ..
I hope you got my point of view...
推荐答案
UILocalNotification
,您可以在文档中阅读。
There is not such option in UILocalNotification
as you can read in the documentation.
您唯一的选择是在每个用户启动应用程序时检查年份是否结束。
Your only option is to check wether the year is over when every the user starts the app.
这篇关于UILocalNotification结束日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!