Search code examples
ioscocoa-touchcalendarnsdate

List of all American holidays as NSDates


I'm seeking a way to get all American holidays as an array of NSDates. Is there a way to implement that?


Solution

    • Here you'll find RSS-feeds with the holidays. It doesn't list year, but in the docs you'll find information how to change date ranges.
    • Download it. I would suggest ASIHTTPRequest for that task.
      parse the RSS-feed. you can do so by normal XML-parsing, or you use a specialized parser. MWFeedParser would be one option.
    • Save the dates. either by using CoreData, or Event Kit Framework