Questions tagged [ekcalendar]

24 questions
0
votes
1 answer

How to get only Visible calendars in iOS

I'm trying to get only the visible calendars from iOS using Swift. I can get the whole list of available calendars but I cannot know which one is being shown in the device. I just want to work with those ones and not creating another list of…
Alex Ra
  • 31
  • 1
  • 7
0
votes
2 answers

How to get a set of EKCalendars properly

I now develop an iOS App that shows a list of iCloud EKCalendars. My swift codes can get a set of iCloud EKCalendars, but the order is always different. Could anyone give me advice to get the set in order? let eventStore = EKEventStore() let sources…
0
votes
1 answer

How can I set my default calendar when done is pressed?

I want the user to be able to chose a new default calendar with the EKCalendarChooser. So far this is what I thought that might work but it is not. func calendarChooserDidFinish(_ calendarChooser: EKCalendarChooser) { print("Done was…
user5853889
0
votes
1 answer

Add event screen is not opening in iOS

In my iOS app I want to create event in calendar and I've found code but the code directly creates an event instead of opening Add event screen. I want to allow user to set reminder through add event screen. My Code is Below : EKEventStore *es =…
0
votes
0 answers

iOS - Fetch Events from Custom Calendar

Following is the code I'm using to fetch the events from Calendar, but I always get the array nil. EKEventStore *eventStore = AppContext.HSCalendar.eventStore; NSPredicate *predicate = [eventStore predicateForEventsWithStartDate:[NSDate distantPast]…
Vaibhav Jhaveri
  • 1,579
  • 3
  • 28
  • 53
0
votes
1 answer

predicateForEventsWithStartDate returns nil

predicateForEventsWithStartDate returns nil when the startDate and endDate are same even when there is an event for the dates I am providing, but the same function seems to work if the start and end date are different. var predicate:NSPredicate…
sahiljain
  • 2,215
  • 1
  • 29
  • 39
-1
votes
1 answer

Granting permission for the calendar without showing ios builtIn alertView

I am using this method to ask user for the calendar permission requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) but what i want is that when user clicks on Button named as GrantPermission, then the permission…
Uzair Dhada
  • 333
  • 2
  • 6
  • 23
-2
votes
1 answer

How to create a app specific Calendar in Swift 3

I tried to create a calendar from my app. It does not work on an iPhone 6, the app crashed. Here is my code: do { let calender = EKCalendar(for: .event, eventStore: eventStore) calender.title = "MyApp" calender.source =…
Vignesh
  • 93
  • 1
  • 7
-3
votes
3 answers

How to show list of calendars

In my project i need to show list of calendars where user can select one, based on selection i need to fetch the events from device calendar app. Is there any way to show the default calendar list like the below image or should i customise the…
Test Test
  • 1,761
  • 3
  • 10
  • 12
1
2