如何创建“添加到日历” iPhone网页链接 [英] How to Create "Add to Calendar" Link on Web Page for iPhone

查看:797
本文介绍了如何创建“添加到日历” iPhone网页链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多日历程序(Outlook,iCal)支持vCal下载事件信息并将其添加到您的日历中。其他人可以使用vCalendar微格式来提取数据。但是,这些似乎都不支持iPhone。

Many calendaring programs (Outlook, iCal) support vCal for downloading event information and adding it to your calendar. Others can use the vCalendar microformat to extract data. Neither of these, however, seems to be supported on the iPhone.

是否有任何功能等同物允许我在页面上列出活动信息并拥有网站访问者只需点击一下,即可将活动添加到她的日历中?由于Mobile Safari可以非常轻松地从网页中提取电子邮件和电话号码,因此事件的类似功能似乎很奇怪。

Is there any functional equivalent that will allow me to list event information on a page and have a website visitor add the event to her calendar with a single click? Since Mobile Safari makes it super-easy to extract emails and phone numbers from web pages, it seems odd that there's no similar functionality for events.

推荐答案

更新:

请注意,这是一个非常古老的答案。自 iOS 5 以来,您可以使用。 code>日历中的文件。

Update:
Note that this is a very old answer. Since iOS 5 you can use EKEventStore to access calendar events and Mobile Safari will open .ics files in Calendar.

原始答案

这是不可能的,可悲的是,iPhone上的日历没有API。您可以构建一个注册ical URL方案的应用程序,但由于没有API(例如,对于AddressBook),您仍然无法将日历条目保存到日历后端。

Original Answer
It's not possible, there is no API for the calendar on the iPhone, sadly. You can build an app that registers for the ical URL scheme, but you still won't be able to save the calendar entries to the calendar backend since there is no API (like e.g. for the AddressBook).

这篇关于如何创建“添加到日历” iPhone网页链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆