问题标签 [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.

0 投票
1 回答
4705 浏览

ios - 使用 EKEvent 在 iphone 中播放闹钟

我正在开发使用EKEvent类存储事件的应用程序,并且我希望我的应用程序在该事件发生时发出警报。我不知道如何在 iPhone 中播放闹钟。

0 投票
3 回答
1338 浏览

iphone - does iPhone simulator calendar store "availability" correctly for an event?

does iPhone simulator calendar store "availability" correctly for an event?

I've got a test app that populates the iPhone simulator calendar with events, but I'm noting that the availability property seems to be always FREE when reading it back using EKEventKit.

Anyone know if there a known problem here?

Also I note when running the SimpleEKDemo apple sample application, that when it brings up the EKEventKitUI screen to view/edit an event, that I don't see the "availability" field. Not sure why. On the actual physical iPhone it appears fine.

0 投票
2 回答
439 浏览

ios - 如何将给定为“20110912T220000”(NSString)的日期转换为 NSDate

我正在获取“20110912T220000”格式的日历事件(在解析 .ics 文件时)的开始和结束日期。如何将其转换为 NSDate 以添加为事件(EKEvent)的 startDate 属性。

如果有人知道,请尽快帮助我。

0 投票
1 回答
321 浏览

iphone - 显示 EventKitUI 屏幕时如何处理 iPhone 日历事件更改?

EventKit(编程指南)介绍了当底层 iPhone 日历事件数据发生变化时,如何通过观察者处理应用程序代码中的事情。好的。

但是,如果您正在显示 Apple EventKitUI 屏幕(即不是您自己的代码)作为应用程序的一部分,您会怎么做?如果基础事件数据发生更改,您如何使用户消息无效/提供用户消息或自动刷新数据。例如,如果您跳出您的应用程序,转到日历进行更改,然后跳回您的应用程序,该应用程序仍处于 EKUI“显示”或“编辑”事件屏幕?

0 投票
7 回答
5853 浏览

iphone - EKEvent 事件标识符返回 null

当我尝试获取 EKEvent 的标识符时,我得到的只是一个 nil 值。由于在 iOS5 中 EKEvent 是 EKCalendarItem 的子类,我想我可能能够获得 EKCalendarItem 的 UUID,但它也返回 nil。

在尝试访问标识符或 UUID 属性时,有时我也会收到此错误:

我已经被这个问题困扰了很长一段时间了,但我认为它与 iOS5 beta 相关。但是由于我们现在在 iOS5 上,它仍然无法正常工作。

0 投票
0 回答
408 浏览

iphone - EkEventStore 重复事件

我在我的应用程序中处理 iOS 日历事件。

我不想添加重复的事件,即如果事件没有被修改,我不想添加它。

我正在使用来自 EkEventStore 的 saveEvent:event span:EKSpanThisEvent error:&error 方法。根据文档,如果事件已存储,则此方法返回 NO。

但是我也在日历中得到重复的事件。如果我做错了什么,请给我一些建议。

谢谢。

0 投票
4 回答
629 浏览

iphone - 调用“pushViewController”时收到“无法加载源:6”控制台消息???(附代码)

任何想法为什么我会在调用“pushViewController”时看到“无法加载源:6”控制台消息?新观点似乎出现了。代码是:

代码除外:

0 投票
1 回答
410 浏览

iphone - NSFetchedResultsController sectionNameKeyPath equivalent for EKEventStore fetched events from iPhone Calendar

NSFetchedResultsController with property name as sectionNameKeyPath allows retrieving managed objects by Core Data retrieved as group sections. I am looking for a similar method of doing this for fetching Calendar Events via EKEventStore proxy class, to achieve a group by date to create an agenda view of event grouped by date. I am currently doing this in code wondering if there is a way to do this automatically.

0 投票
1 回答
364 浏览

iphone - 此代码是否可以用于自定义 EKEventViews 的颜色(附加代码)

此代码是否可用于自定义 EKEventViews 的颜色(附加代码)?即它应该可以作为苹果rev 的IOS 版本。

如果没有,你会推荐什么代码?

0 投票
2 回答
718 浏览

iphone - 如何自定义 EKEventView 显示的 EKEventEditView 的颜色?

背景

问题

  • 我的问题是如何自定义 EKEventEditView 的颜色,该视图不是由我的代码触发的,而是由 EKEventView 中的苹果代码触发的。

API 链接