开发者

Add calendar to iphone

开发者 https://www.devze.com 2023-02-16 00:54 出处:网络
I am currently making and iphone app and a big function that i want to incorporate is the ability to subscribe to a calenda开发者_开发问答r..

I am currently making and iphone app and a big function that i want to incorporate is the ability to subscribe to a calenda开发者_开发问答r.. 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..


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消