I want to test add local notification. I want it repeat daily/hourly. How can I do that?
NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar];
/
Your code would be much simpler if you used dateByAddingComponents:toDate:options:.
(dateByAddingTimeInterval: does not handle calendars properly, e.g. time zone changes.)
If you want it to repeat, I think you have to add several, or re-add them when your app is next launched. Otherwise, a notification that repeated every second would be incredibly annoying.