在iOS中创建日历 [英] Create a calendar in iOS

查看:181
本文介绍了在iOS中创建日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,我需要创建一个日历来保存由所述应用程序创建的事件。日历应仅在应用内部使用,但可以选择同步到默认日历。搜索过的教程,但没有一个以非常好的方式解释这个过程,所以如果有人能解释这个过程和代码或指向一个好的教程将是伟大的。谢谢

I have an app which I need to create a calendar to save events that are created by said application. The calendar should be used only inside the app but could have the option to sync to the default calendar. Searched tutorials but none explain this process in a very good way, so if someone could explain this process and the code or direct to a good tutorial would be great. Thanks

推荐答案

您可以尝试使用 Eventkit 框架添加提醒,事件,警报。

You could try Eventkit framework using that you could add reminders,events,alarms.

1)它没有像UILocalNotification那样的通知限制数。

1)It has no number of notification limitation like UILocalNotification.

2)使用事件工具包你可以添加两者基于时间的基于时间的事件。

2)With event kit you could add both time based as well location based events.

3)您也不需要担心隐私。

3)You don't need to worry about privacy too.

虽然UILocalNotification和EventKit本身都很强大。

Although both UILocalNotification and EventKit is powerful in its own right..

注意:EventKit框架的ios 6或以上

Note that:ios 6 or above for EventKit framework

根据您的需要选择哪一个。

It's upto you to choose which one depending upon your needs.

以下链接将为您提供良好的开端

The below links will give you good headstart

资源1

资源2

下面的图片将为您提供有关evenkit的详细信息。

The image below will give you a nice peek of what evenkit is.

如果符合您的需要,请使用eventkit。

Use eventkit if it suits your need.

这篇关于在iOS中创建日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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