Questions tagged [ekeventkit]

166 questions
91
votes
1 answer

Is it possible to reset the privacy settings in iOS?

In order to test access granting to the iOS calendar, I need to reset the privacy settings on my test device. However, every time I install it on the device it remembers the old privacy settings and does not show the alert view to ask me if I grant…
david
  • 3,553
  • 4
  • 28
  • 39
16
votes
3 answers

Error getting shared calendar invitations for entity types 3, Xcode 6.1.1. EKCalender, EKSource, EKEventstore and Objective C

I am developing calendar app. I am trying to save EKEvent using assigned EKCalender. But when I try to run following code it gives me error. Please help -(BOOL)createEventWithTitle:(NSString *)paramTitle startDate:(NSDate *)paramStartDate…
user2511630
  • 3,214
  • 2
  • 17
  • 15
13
votes
2 answers

EKEventStore getting events returns empty list

I want to get all events from a specific calendar in my app. I created the calendar and the test events in my app (needs iOS 5.0 or later for creating custom calendars). If I run the app on my device and then check the system calendar app then my…
TRD
  • 1,027
  • 11
  • 20
13
votes
1 answer

How to accept/decline EKEvent invitation?

I would like to allow my users to accept/decline a meeting invitation within my app. I think what I need is to update somehow the EKParticipantStatus but it looks like it isn't possible to update. Apple Docs: Event Kit cannot add participants to…
PMT
  • 1,082
  • 8
  • 18
10
votes
2 answers

Adding event to calendar very slow

I am simply wanting to add an event to the device's calendar. I'm using: __weak ProgramViewController *weakSelf = self; EKEventStore *store = [[EKEventStore alloc] init]; [store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL…
daihovey
  • 3,485
  • 13
  • 66
  • 110
9
votes
2 answers

Why is the selectedCalendars property of EKCalendarChooser null?

I have a EKCalendarChoosere which allows me to select calendars. I see the calendars and the delegate methods (EKCalendarChooserDelegate) get called. However when I access the selected calendars property of the calendar chooser they are always null.…
9
votes
4 answers

getting a "Could not load source: 6" console message when calling "pushViewController"??? (code attached)

Any ideas why I would be seeing a "Could not load source: 6" console message when calling "pushViewController"? The new view seems to come up ok. The code is: Code Except: EKEventViewController *eventViewController = [[EKEventViewController alloc]…
Greg
  • 34,042
  • 79
  • 253
  • 454
9
votes
2 answers

Open "Event Details" in calendar app with specific event id

I am trying to open calendar with specific event, I have added events programmatically and all the IDs of these event are persistent. This is how i add event -(IBAction)addEvent:(id)sender{ EKEventStore *store = [[EKEventStore alloc]init]; …
Pratik Jamariya
  • 810
  • 1
  • 10
  • 35
9
votes
3 answers

Add location to EKEvent IOS Calendar

How to add the location not just NSString but with latitude and longitude ,so it shows a map too in the Calendar?
Metalhead1247
  • 1,978
  • 1
  • 17
  • 28
8
votes
2 answers

EKEventStoreChangedNotification gets called several times

I am using the EKEventStore in my app. I grab the default store and register for the EKEventStoreChangedNotification to be notified when changes are made to the calendar. However, when a change is made, the sender for the notification gets called…
Kyle Rosenbluth
  • 1,672
  • 4
  • 22
  • 38
7
votes
0 answers

EventKit Unit testing - stall on main thread

I need to create multiple calendar events for Unit Test in Xcode. The call needs to be async, because of the access rights request: eventStore.requestAccess(to: EKEntityType.event, completion: { granted, error in //create…
Async-
  • 3,140
  • 4
  • 27
  • 49
7
votes
3 answers

How to Update or Edit EKEvent in iOS and store in native calendar using identifier?

i am using EKEvent in my app to fetch all store events and i want to edit any particular event by identifier and re-save in existing..so what should i do for that? EKEventStore *store = [EKEventStore new]; EKEvent *event = [EKEvent…
Vivek Goswami
  • 432
  • 3
  • 16
6
votes
1 answer

Checking for duplicated items before adding new event in iOS - EKEventStore

I'm new to iOS programming and I am working on a easy project that lists holidays from a given city and gives users the ability to add those events to the iCal default calendar. The issue is: how to check if there is already an event with same…
lsp
  • 171
  • 1
  • 5
  • 10
6
votes
1 answer

How to set a reminder(alarm) using eventKit framework for a particular date

I am working with EventKit framework in iOS 5 and I successfully added an event to the iOS calendar using the below code EKEventStore *eventDB = [[EKEventStore alloc] init]; EKEvent *myEvent = [EKEvent eventWithEventStore:eventDB]; …
Ranjit
  • 4,576
  • 11
  • 62
  • 121
6
votes
3 answers

EKEventEditViewController Add and Cancel buttons not responding

I am trying to add a calendar event using EKEventEditViewController. I have setup a EKEventEditViewController properly with an EKEventStore, EKEvent, and its editViewDelegate as the presenting view controller. The EKEventEditViewController presents…
1
2 3
11 12