Quote:
Originally Posted by TechnoEagle
I am trying to make an instance of UILocalNotification have a repeatInterval of 5 minutes. Many people online have said to set the repeatInterval to 5*NSMinuteCalendarUnit. This doesn't work, and I am not surprised, since every NSCalendarUnit is a multiple of two, and NSHourCalendarUnit is half as big as NSMinuteCalendarUnit.
Does anyone know how to make the repeatInterval 5 minutes (or any other custom interval)??
|
Your only choice is to use one of the calendar units like minute, hour, day, week, month, etc. Those constants are bit values where each bit represents a calendar unit. You can't use an expression like 5*NSMinuteCalendarUnit.
You can specify a fire date explicitly with the fireDate property, but that's a one shot notification that doesn't repeat.