0

I am currently making and iphone app and a big function that i want to incorporate is the ability to subscribe to a calendar.. what i wish to do is to let the user give a URL for where the calendar is held, and from that url i want the app to fetch that calendar and subscribe to it..

i want to know how i can write the code to do this..

so in short my question is..

what code would i write to:

  1. get .ics file from a URL
  2. and save/subscribe to this newly fetched .ics calendar file

any help and info would be very much appreciated..

Ibz
  • 518
  • 1
  • 8
  • 26
  • 1
    You can try this other answer as well http://stackoverflow.com/questions/7597051/how-to-programmatically-add-calendar-subscriptions-on-ios – estemendoza Jun 04 '12 at 18:52

1 Answers1

1

The idea of "subscribing" to something isn't a build in function of the iOS SDK. To get this type of functionality would mean writing a recurring/timed function to grab the contents of this URL and process it locally.

The library I often use to simplify some of the HTTP functionality that you'll need is asi-http-request

https://github.com/pokeb/asi-http-request/tree

Hope this is helpful.

NWCoder
  • 5,296
  • 1
  • 26
  • 23
  • Thank you for your answer.. i will try this route and see what i come up with.. :) – Ibz Mar 08 '11 at 17:57