草庐IT

iphone - EventKit EKEvent "organizer"属性的用途/用途是什么?

EventKitEKEvent“组织者”属性的目的/用途是什么?doco说“与事件相关的组织者”,但我不确定这是什么意思。 最佳答案 Organizer属性是指“事件(或日历)事件的组织者”。如果你从这个wiki开始页面,您很快就会找到RFC2446阅读!;在这里搜索突出的报价是:TheCU(CalenderUser)whoinitiatesanexchangetakesontheroleof"Organizer" 关于iphone-EventKitEKEvent"organizer"属

iphone - 在 EKEventStore 中检索具有特定标题的 EKEvent

你好,我在iCloud上的特定日历中保存了一些EKEvent,我想检索其中一些具有特定标题的EKEvent,这可能吗?我看到有这个方法:eventsMatchingPredicate但是只有一个谓词:predicateForEventsWithStartDate:endDate:calendars:我想为标题找到EKEvent,知道吗? 最佳答案 我建议您存储事件的ID,然后使用EKEventStore方法获取它-(EKEvent*)eventWithIdentifier:(NSString*)identifier编辑:啊哈,现在我

ios - EKEvent 不保存 EKAlarm 但仅在某些设备上没有错误

我正在创建一个带有EKAlarm的EKEvent,如下面的代码所示。在大多数情况下,这非常有效。但是,在有限数量的设备上,不会设置闹钟。事件已在日历中创建,但缺少警报。EKEvent*event=[EKEventeventWithEventStore:eventStore];event.title=@"EventTitle";event.allDay=YES;event.notes=@"EventNotes";event.calendar=calendar?calendar:eventStore.defaultCalendarForNewEvents;event.startDate=d

ios - 如何识别 EKEvent 的 EKParticipationStatus 是否为挂起(尚未接受)?

我已经试过了if([eventparticipationStatus]==EKParticipantStatusPending)它正在运行。但是EKEvent的participationStatus没有公开,我不敢使用它,因为它可能会因为私有(private)API而导致拒绝。我还尝试遍历所有event.attendees,但EKParticipantisCurrentUser似乎没有给出正确的值。它总是返回NOfor(EKParticipant*participantinevent.attendees){if([participantisCurrentUser]){if(partic

ios - 如何在 iOS 中更新或编辑 EKEvent 并使用标识符存储在 native 日历中?

我在我的应用程序中使用EKEvent来获取所有商店事件,我想通过标识符编辑任何特定事件并重新保存到现有的..我应该怎么做?EKEventStore*store=[EKEventStorenew];EKEvent*event=[EKEventeventWithEventStore:store];event.title=@"abc";event.notes=@"thisisupdatednotes";event.calendar=[storedefaultCalendarForNewEvents];NSError*err=nil;[storesaveEvent:eventspan:EKSp

ios - 从 iOS 日历应用程序的 EKEventStore 中删除 EKEvent

我使用以下代码在iPhone的默认日历上添加了一个事件:EKEventStore*store=[[EKEventStorealloc]init];[storerequestAccessToEntityType:EKEntityTypeEventcompletion:^(BOOLgranted,NSError*error){if(!granted){return;}EKEvent*event=[EKEventeventWithEventStore:store];event.title=@"Thisistheevent";event.startDate=[NSDatedate];event

iOS - 删除 Recurring EKEvent,事件再次出现

我在日历中有一个重复发生的事件。我正在使用此代码删除单个事件从日历中删除。 最佳答案 在使用属性calendarItemExternalIdentifier的EKCalendarItem类引用中,您可以找到它Recurringeventidentifiersarethesameforalloccurrences.Ifyouwishtodifferentiatebetweenoccurrences,youmaywanttousethestartdate所以你只想删除重复你必须做这样的事情:NSPredicate*predicate=[

iOS EKEvent Store 循环重新创建 iCloud 日历,不会保存在本地。

我遇到了EKEventStore、iCloud和本地日历的奇怪问题。如果启用了iCloud,则会创建日历并将事件保存到您期望的日历中。如果iCloud已关闭并且您尝试保存事件,则没有任何反应,但是设备会继续每3-5秒循环创建iCloud日历,直到iCloud重新打开,然后所有这些日历都会作为副本涌入iCloud。我使用的代码几乎与此处以及ApplesDocs中多次引用的代码完全相同。我完全不知道为什么它不起作用,而且一般来说,关于EKEventStore的文档似乎很少。//•••••••••••••••••••••••••••••••••••••••••••••••••••••••••

iphone - EventKit - 添加带有 2 个警报的 EKEvent 时应用程序卡住 (iOS 5)

我有一个应用程序可以通过编程方式将提醒添加到您的iOS设备的日历中。在iOS5之前,我可以这样添加一个带有两个闹钟的日历项:EKEventStore*eventStore=[[EKEventStorealloc]init];EKEvent*event=[EKEventeventWithEventStore:eventStore];//setstartDate,endDate,title,location,etc.[eventaddAlarm:[EKAlarmalarmWithRelativeOffset:60.0f*-5.0f]];//5min[eventaddAlarm:[EKAla

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

我正在开发使用EKEvent类存储事件的应用程序,我希望我的应用程序在该事件发生时触发警报。我不知道如何在iPhone中播放闹钟。 最佳答案 我认为您可以使用EKEvent操纵此代码来播放警报..NSMutableArray*myAlarmsArray=[[NSMutableArrayalloc]init];EKAlarm*alarm1=[EKAlarmalarmWithRelativeOffset:-3600];//1HourEKAlarm*alarm2=[EKAlarmalarmWithRelativeOffset:-86400