iphone - Subscribe to a WebCal URL in iOS 4.0 -


In my iPhone app, I have this button, which opens a webclub: // The URL in UIWebView is as follows:

  #define kHostName @ "webcal: //www.markthsdate.com/kalender/World_Cup_Football_2010_Match_Schedule_10251.ics" - (IBAction) putInCalendar: (ID) sender {NSURL * url = NULL; Url = [[NSRL Alok] initWithString: kHostName]; NSURLRequest * Request = [[NSURLRequest alloc] initWithURL: url]; [WebView loadRequest: request]; [Request release]; [Url release]; }  

In iOS 3.x, this gives a sequence of "Subscribe to Calendar" etc., what happens if you open the same URL in Mobile Safari : The related event is added as an iPhone calendar's subscription.

Either way, in iOS 4.0, it does not work from within my app, though it works on opening URL in Mobile Safari in iOS 4.0.

Can someone explain to me why this is not working, but even better: What would be the appropriate iOS 4.x approach for this functionality?

I got a look at the new program kit which has been added to 4.0 because it looks like dealing with these types of things; Although the document is very short on the event kit, and I'm not able to find a sample project using the event kit.

It has been accepted by Apple as a bug, and I have registered it like this . There is currently no workaround ....


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -