3
我想親自嘗試一下,但需要一個月才能確定它的工作。任何人都試過這個?我可以設置UILocalnotification重複每個月的最後一天嗎?
NSDate *fireDate = // Date I want to repeat, in this case 31 may
localNotification.fireDate = fireDate;
localNotification.repeatInterval = NSMonthCalendarUnit;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
我希望它在每月的最後一天提醒。這是一條路嗎?如果我安排在30天的月份,第二天是31天的月份,如4月 - > 5月,我應該怎麼做,因爲我只能將其設置爲4月30日(也是2月28日和29日的問題)
你能提供的每一個最後一天它的代碼? –