问题标签 [ekeventkit]
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.
objective-c - 访问日历的请求挂起在初始屏幕上
在我的应用程序中,我会在应用程序启动后立即阅读日历。因此,根据指南,我的应用程序第一次要求访问日历,但发生的事情是它永远不会出现,我只能看到启动画面。
当我关闭应用程序时,我会看到允许访问我手机上的日历的弹出窗口。我授予对它的访问权限,之后一切正常。
这是我的代码:
我究竟做错了什么??
谢谢,
ios - EKEvent 接受事件邀请
我想知道如何EKEvent
为当前已被邀请的用户设置接受/可能是/拒绝参与者状态?
我可以检查参与者集,但EKEvent
找不到可以设置其状态的任何内容。
ios - 在 ios 中创建具有复杂规则的提醒
我想创建一个具有复杂规则的重复提醒,即
- 提醒将有一个开始日期和结束日期。
- 提醒只会在特定的工作日重复。
- 在开始日期和结束日期之间的选定日期,它们将在特定时间发生。
似乎很接近,但据我了解文档,我认为我将不得不使用事件组合。
我需要指向创建提醒的方向
谢谢
编辑
我尝试过以下事情并遇到了一些问题并取得了一些成功
所以我观察到重复规则适用于相对警报,如果警报必须在每个星期五发生,那么发出绝对警报有什么意义
但我的要求是我希望每个星期五都响起警报说下午 5 点日期可以是相对的但时间必须固定我怎样才能做到这一点?
ios - 自定义 EKSourceType - 事件工具包 iOS / 只读日历
我正在尝试创建一个calendar
显示在Apple's calendar
(来自我的应用程序)中的内容,但我希望它是只读的(只能从我的应用程序中编辑,不能双向同步到Apple's calendar
系统)——我希望 usingEKSourceTypeSubscribed
可以解决这个问题,并使用了以下代码:
尝试检索相关的EKSource
(因为似乎没有办法创建新的源。但是,除非用户已经订阅了一些日历,否则似乎这种源类型不存在。
有任何想法吗?
ios - saveEvent 返回“未设置日历”
我正在尝试从我的应用程序将事件保存到日历中。我的代码适用于 iOS 7,但在iOS 6上,它返回No calendar has been set。
在 iOS 7 上,应用程序提示用户授予对日历的访问权限。但在 iOS 6 上不会出现此类提示。尽管应用程序在设置->隐私->日历中被授予访问权限。
是的,我已经实施了requestAccessToEntityType:completion:
.
这是我的代码片段。
}
ios - NSNotificationCenter callback while app in background
One question and one issue: I have the following code:
These methods are in a class/object called CalendarEventReporter which contains the method getCalendarEvents (in the callback).
Two things: 1) If the app is in the background the callback does not run. Is there a way to make it do that? 2) When I bring the app back into the foreground (after having changed the calendar on the device) the app crashes without any error message in the debug window or on the device. My guess is that the CalendarEventReporter object that contains the callback is being garbage-collected. Is that possible? Any other thoughts on what might be causing the crash? Or how to see any error messages?
icalendar - 在 iOS 中显示日历事件详细信息
我正在使用下面的代码来获取日历事件并记录它的详细信息。当我尝试记录当前时间、开始日期和结束日期时,它会显示大约 5 小时前的时间。我没有得到它背后的原因是什么?
我在 7 月 30 日晚上 8 点到晚上 9 点设置了一个活动。
我的代码:
但是当我运行上面的代码时,我得到了以下输出。
2014-07-29 14:13:57.979 iCalEvents[806:60b] currentTime 2014-07-29 08:43:57 +0000 2014-07-29 14:13:57.980 iCalEvents[806:60b] 小时 14 2014-07 -29 14:13:57.980 iCalEvents[806:60b] 分钟 13 2014-07-29 14:13:57.981 iCalEvents[806:60b] startDate 2014-07-29 08:43:57 +0000 2014-07-29 14 :13:57.990 iCalEvents[806:60b] 事件 ("EKEvent <0x95485c0>\n{\n\t EKEvent <0x95485c0>\n{\t 标题 = \t\tMyEvent; \n\t 位置 = \t(null ); \n\t 日历 = \tEKCalendar <0x9458b90> {title = Calendar; type = Local; allowedModify = YES; color = #1BADF8;}; \n\t 警报 = \t\t(null); \n\ t URL = \t\t\t(null); \n\t lastModified = 2014-07-29 08:38:32 +0000; \n\t timeZone = \tAsia/Kolkata (GMT+5:30) 偏移19800 \n}; \n\t 位置 = \t(null); \n\t开始日期= \t2014-07-30 14:30:00 +0000 ; \n\t结束日期= \t\t 2014-07-30 15:30:00 +0000 ; \n\t allDay = \t\t0; \n\t 浮动 = \t0; \n\t 重复 = \t(null); \n\t 参加者 = \t(null) \n};" ) 2014-07-29 14:13:57.990 iCalEvents[806:60b] 标题 (MyEvent) 2014-07-29 14:13:57.991 iCalEvents[806 :60b] 位置 ("") 2014-07-29 14:13:57.991 iCalEvents[806:60b] timeZone ("Asia/Kolkata (GMT+5:30) offset 19800") 2014-07-29 14:13: 57.992 iCalEvents[806:60b] startDate ( "2014-07-30 14:30:00 +0000" ) 2014-07-29 14:13:57.992 iCalEvents[806:60b] endDate ( "2014-07-30 15: 30:00 +0000" )
ios - 在 EKParticipant/EKAttendee 中访问电子邮件
我想在 EKEventKit 中获取活动参与者的电子邮件地址。
我有以下代码:
当我运行代码时,人会填充以下数据:
如何访问电子邮件字段?
我尝试(如上)使用 URL.resourceSpecifier,但这通常是一些奇怪的字符串,绝对不是电子邮件地址。
ios - EKEventStore eventWithIdentifier 导致 EKCADErrorDomain 错误 1010
创建日历事件对我来说很好,它正在编辑导致问题的现有事件。当我尝试将 eventWithIdentifier 用于 EKEventStore 对象的实例时,它会注销他的错误:
获取标识符为 5E5EA399-1852-4A50-8155-CD5CDCE69317 的事件时出错:错误域 = EKCADErrorDomain 代码 = 1010“操作无法完成。(EKCADErrorDomain 错误 1010。)”
我一直在寻找这个错误的解释,但没有运气,有人知道吗?这是我认为的相关代码
ios - predicateForEventsWithStartDate 返回 nil
当 startDate 和 endDate 相同时,predicateForEventsWithStartDate 返回 nil,即使我提供的日期有事件,但如果开始日期和结束日期不同,相同的函数似乎可以工作。
事件为零。我还检查了 eventStore 不是零。谢谢您的帮助