ekeventkit

How to add some additional fields to EKEvent

那年仲夏 提交于 2020-01-14 14:32:14
问题 One solution could be: Creating a new model EKEventExt and add a One-to-One relationship between them, I'm not sure whether it's doable, since EKEventExt is stored in my one sqlite and EKEvent is stored in eventstore. 回答1: It would be possible to append custom fields to calendar formats such as iCal (like x-my-field ), there is no EKEvent property like .customFields etc. Saying this, unfortunately it's not possible to store your custom data in any fields. It would be possible to create your

Revoke a requestAccessToEntityType: authorization on Mavericks so I can test my app

一笑奈何 提交于 2019-12-25 02:43:04
问题 I'm developing a CLI app that requests access to Reminders app on OSX Mavericks. Everything works fine with requesting permission, and detecting if the user has disabled the permission. The problem I have is that I cannot completely revoke the permission from the app in my OS. The app appears in Prefs -> Privacy -> Reminders, and the most I can do is disable the permission, but I want to (again) test if the permission request is fired correctly. Is there any way to completely remove the

Daylight Saving Time Bug in EventKit

℡╲_俬逩灬. 提交于 2019-12-24 09:27:08
问题 I discovered a bug in eventKit where dates are altered when saving. In this sample, I use an event with title Midnight that is a 1 second long event calculated to be local astronomical midnight. In the local timeZone, there are two occurrences of 1AM to 2AM in locale format because of daylight saving time ending. The event occurs in the second instance of 1AM to 2AM. See this sample code: if ([event.title containsString:@"Midnight"]) { NSLog(@"Timezone is %@",[NSTimeZone localTimeZone]);

EKEvents/EKReminders set but are not displaying on calendar

你说的曾经没有我的故事 提交于 2019-12-23 21:05:46
问题 I am setting events to calendar. The code works throughly but wen I check if the event r set on my device's calendar. It doesnt show anything. I am doing this in ios6, when I do it for ios5, it works fine. 回答1: This worked for me, you can try the same. I had to navigate from one page to another, so posting the link to the two pages. First -> https://discussions.apple.com/message/16497282#16497282 Then, from there to -> https://discussions.apple.com/message/16479587#16479587 I had to go into

Objective c customizing EKEventEditViewController

点点圈 提交于 2019-12-23 03:22:47
问题 I am displaying event edit View using this code -(void)editEvent:(EKEvent *)events{ EKEventEditViewController *addController = [[EKEventEditViewController alloc] initWithNibName:nil bundle:nil]; addController.delegate = self; addController.eventStore = [SharedEventStore defaultEventStore]; addController.event = events; [[NSUserDefaults standardUserDefaults] objectForKey:KCalendarIdentifier]]; addController.editViewDelegate = self; addController.navigationBar.barStyle = UIBarStyleDefault;

when user click on particular date a alert will show with that event title

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 03:05:07
问题 I'm Using SAcalendar. this is my json: data: - [ - { id: "1", event_start: "2014-06-09 11:30", event_end: "2014-06-09 12:30", title: "Click a date to create a new event and drag to change its date and time. Click on an existing event to modify. Click "Show Standard Settings" to set additional event properties." }, - { id: "2", event_start: "2017-01-03 16:30", event_end: "2017-01-03 17:30", title: "fgdgf" }, - { id: "3", event_start: "2017-01-11 03:30", event_end: "2017-01-11 06:00", title:

Deleting an EKEvent from device's calendar using its identifier

拜拜、爱过 提交于 2019-12-21 23:08:20
问题 I am creating EKEvent, saving it and saving its identifier as well. I wanna access this identifier and delete the specific Event. I am able to retrieve the proper Identifier from database. However, the Event isn't getting deleted from my Device's calendar. My code to delete the event : `NSError* err; EKEvent *myEvent = [EKEvent eventWithEventStore:homeobj.eventDB]; myEvent = [homeobj.eventDB eventWithIdentifier:[dbObj selectEventIdentifier:mypass]]; [homeobj.eventDB removeEvent:myEvent span

EKRecurrenceRule with end repeat never

…衆ロ難τιáo~ 提交于 2019-12-21 23:07:10
问题 I want to create a EKEvent in calendar with forever repeat option. Below is the code for the Recurrence rule EKRecurrenceRule *rule = [[EKRecurrenceRule alloc] initRecurrenceWithFrequency:EKRecurrenceFrequencyDaily interval:1 end:[EKRecurrenceEnd recurrenceEndWithEndDate:date]]; how to set infinite or never end in recurrence end argument. Thanks 回答1: little late, but i 'll answer, because i could not find the answer anywhere in the Apple Doc. Just pass nil as end param and there you go.

EKEventEditViewController freezes app and loads after long time

ぐ巨炮叔叔 提交于 2019-12-14 03:26:41
问题 I have the following code in swift: var eventController = EKEventEditViewController() eventController.editViewDelegate = self var store = EKEventStore() eventController.eventStore = store var event = EKEvent(eventStore: store) event.title = viewModel.roleName event.location = viewModel.location event.startDate = viewModel.startDate event.endDate = viewModel.endDate eventController.event = event var status = EKEventStore.authorizationStatusForEntityType(EKEntityTypeEvent) switch status { case

EKEvent accept event invtation

元气小坏坏 提交于 2019-12-13 01:28:53
问题 I wonder how can I set accept/may be/decline participant status for an EKEvent for which current user has been invited? I can check the participant set but EKEvent found nothing for which I can set its status. 回答1: Status is maintained per each EKParticipant (not on the EKEvent itself), but you can't set it programmatically: [EKParticipant participantStatus] is read only. Per the Apple docs, Event Kit cannot add participants to an event nor change participant information. The closest