objective-c - ios本地通知如何设置复杂的重复提醒
巴扎黑
巴扎黑 2017-04-17 12:06:22
0
1
357

比如想它每星期一,星期四,星期五通知用户

就这种不固定的重复提醒 该怎么弄?

巴扎黑
巴扎黑

reply all(1)
伊谢尔伦

NSLocalNotification有个属性,repeatInterval:
repeatInterval
The calendar interval at which to reschedule the notification.

@property(nonatomic) NSCalendarUnit repeatInterval
Discussion
If you assign an calendar unit such as weekly (NSWeekCalendarUnit) or yearly (NSYearCalendarUnit), the system reschedules the notification for delivery at the specified interval. The default value is 0, which means don't repeat.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!