问题标签 [ekevent]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
eventkit - 使用 EventKit Mountain Lion 将事件添加到日历
我添加了框架 EventKit 并且我有这个代码。我无法在默认日历中添加活动。
在控制台中我有这个:“我们正在包含和获取事件,因为这个应用程序做了一些与事件相关的事情。如果这个应用程序不关心事件,那么这可能是一个昂贵的调用。”
我是初学者。谢谢你的帮助。
iphone - EKEvent在iOS5中坏了?
我让我的 EKEvent 工作正常,并在 iOS4 中完美地发布到 Calendar.app。现在突然它在 iOS5 或 6 中不起作用..?
我已经在网上搜索了几个小时,但似乎找不到解决方案?
当我运行这段代码时,我一直在输入这个错误日志
错误域=EKErrorDomain 代码=1“未设置日历。” UserInfo=0x1cd2a350 {NSLocalizedDescription=没有设置日历。}
iphone - iPhone calendar EKEvent
I am currently trying to create an iPhone calendar app. In order to make sure it syncs with the existing iPhone calendars, I am using the EKEvent
toolkit.
However, the events I will be storing will have more properties than the ones EKEvent
allows for- e.g., my events will not just have title, details and the few other categories that are allowed for; they will also have themes, priorities...
Thus, when I load the EKEventStore
every time my calendar starts up, this information will not be contained in the EKEvents
that are loaded.
How can I associate this information to the existing EKEvents
so that whenever my calendar is loaded, these additional properties are also loaded?
I would use the eventIdentifier
but the iPhone documentation says that "If the calendar of an event changes, its identifier most likely changes as well." If I am reading this correctly, this means that I cannot consistently use eventIdentifier
to identify an event..
ios - EKEvent Startdate 无法在 iOS 5.1.1 中以编程方式设置
我正在尝试为 EKEvent startdate 属性分配日期,如下所示,代码为:
My CustomEKEvent.h file
My CustomEKEvent.m file
输出是:
任何人都知道解决方案。让我知道。
提前致谢。
ekeventkit - EventKit:有什么方法可以从 EKEventEditViewController 中删除被邀请者
根据要求,我只需要事件存储中的最少输入即可将事件添加到日历。
所以我想隐藏/删除受邀者并从 EKEventEditViewController 重复。
有什么办法可以做到吗?
ios - self.detailViewController.event.title == NULL 在 iOS 5.1.1 中不起作用
self.detailViewController.event.title == NULL
在 iOS 4.3 中运行良好,但在 iOS 5.1.1 中无法运行
删除事件后,标题仍然具有值...
任何人都知道解决方案,请建议我。
iphone - 在 iPhone 中使用 Event Kit 删除事件
我在我的 iOS 应用程序中使用 Event Kit 并使用 Event Kit 创建一个事件。我可以创建它,但我也想赋予删除的能力。但我无法做到这一点。我知道 EKEventStore 有一种删除事件的方法,但我无法创建事件对象。我将事件标识符作为字符串,但我无法使用它创建事件对象。有人可以指导我这样做吗?
问候潘卡伊
ios - iOS/Xcode:在我的搜索范围之外找不到 predicateForEventsWithStartDate 和 startDate 和 endDate 的经常性事件
在 iOS 中,事件由它们的 startDate 和 endDate 以及它们的重复规则存储。如果我想获取接下来 3 天的所有事件,我只会在接下来的三天内获取开始日期的事件。但是:我没有收到重复发生的事件,并且它们的 startDate 不在我的搜索范围内,我想原因是 iOS 日历在事件发生的所有日子里都在动态计算,但在搜索时不使用此信息以编程方式在 EKEventStore 中。
那么当它们的 startDate 超出范围并且应用了一些重复规则时,有没有办法在我的“搜索日期框架”中找到重复事件?
最好的问候,克里斯蒂安
objective-c - How do I get the startDate of an event that is already on my iPhone's calendar?
I am making an app for myself and I need to access the startDate and endDate of specific events that are already in my calendar. How can I go about doing this? I have tried storing a list of events into an array but once the events are in the array, what is the point, how can I access them?
ios - iOS 上带有 eventWithIdentifier 的 EKEvent
如果我想EKEvent
从EKEventStore
witheventWithIdentifier
方法中检索以前保存的事件,但我总是得到空值。
这是添加事件的代码:
以及删除事件的代码:
为什么我无法从具有相同事件 ID 的日历中删除之前添加的事件?
此代码已在 iOS 5(iPad 1)和 iOS 6(新 iPad)上测试...