简体   繁体   English

如何在本机iOS 6日历应用程序中创建日历?

[英]how to create a calendar in the native iOS 6 calendars app?

I have a requirement where in I need to set up reminders / events, but they shouldn't be in the default calendar. 我有一个需要在何处设置提醒/事件的要求,但它们不应位于默认日历中。 So I was looking for a way to add a custom calendar to the native calendar app in iPhone. 因此,我一直在寻找一种将自定义日历添加到iPhone中的本机日历应用程序的方法。 But on looking up the EventKit framework I learned that the method " calendarWithEventStore: " has been deprecated since iOS 6 . 但是在查找EventKit框架时,我了解到自iOS 6起 ,方法“ calendarWithEventStore:”已被弃用 Is there any other way or work around for this. 还有其他方法或解决方法。

Use calendarForEntityType:eventStore: instead, which allows specifying the entity type as well (events or reminders). 请改使用calendarForEntityType:eventStore:它也可以指定实体类型(事件或提醒)。 Note that to support iOS 5 and earlier, you must check if this method is NULL before calling it (or fall back to the old calendarWithEventStore: ). 请注意,要支持iOS 5及更早版本,必须在调用此方法之前检查此方法是否为NULL(或回退到旧的calendarWithEventStore:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过iPhone上的应用程序创建日历(在ios本机日历中) - Create a Calendar (in the ios native calendars) through an Application on the iphone 如何创建像 iOS 日历应用程序这样的时间线? - How to create a timeline like the iOS calendar app? 如何从iOS 6.1中的应用程序打开本机日历应用程序? - How to open native calendar app from our app in iOS 6.1? 如何从网站上的链接打开本机iOS应用程序(日历,笔记...)? - How to open native iOS app (calendar, notes…) from a link on website? react-native-calendars 日历高度不变 - react-native-calendars calendar height doesn't change 如何在本机IOS日历中添加事件 - How to add event in native IOS Calendar 在Android和iOS应用程序和用户日历之间同步日历事件? - Syncing calendar events between Android and iOS applications and user calendars? 如何创建react native ios共享扩展应用程序 - How to create a react native ios share extension app 如何为 iOS 创建分布式 react-native 应用程序? - How to create a distributive react-native app for iOS? Android / iOS:如何使用本机组件创建Web应用程序? - Android/iOS: How to create a web-app, using native componentes?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM