eventkit

I want to disable the URL and NOTES fields of EKEventEditViewController

岁酱吖の 提交于 2019-12-21 06:58:14
问题 I want to customize the EKEventEditViewController with making its URL and NOTES fields disable or removing it. As its the default interface of EKEventEditViewController. I am not able to customize it on myself, I googled a lot for that and can not found any of the feasible solution for this. Any one have worked with such a scenario.Please elaborate the issue. 回答1: In header file include < UINavigationControllerDelegate > delegate Set EKEventEditViewController delegate to self or

Swift 4.0 Eventkit Cannot get calendars and events correctly

≯℡__Kan透↙ 提交于 2019-12-20 16:25:12
问题 I'm trying to use Eventkit to access Mac Calendar. Access is successfully requested but I keep getting nil or an empty array of calendar or events, even though I have several calendars and many eventsin local calendar, iCloud calendar, and Google calendar in the app. The output I get from the following code is: On My Mac [] [] let sources = eventStore.sources for source in sources{ print(source.title) for calendar in source.calendars(for: .event){ print(calendar.title) } } let calendars =

What exactly constitutes a “full calendar sync” in EKCalendar?

▼魔方 西西 提交于 2019-12-20 11:34:12
问题 The documentation for the EKCalendar class states this for the calendarIdentifier property: A full sync with the calendar will lose this identifier. You should have a plan for dealing with a calendar whose identifier is no longer fetch-able by caching its other properties. When exactly does a "full sync" occur and what properties are liable to change besides the calendarIdentifier ? 回答1: When exactly does a "full sync" occur? Calendar and Reminders Programming Guide explains this questions in

How to identify EKEvent uniquely with Sync across the devices

最后都变了- 提交于 2019-12-17 17:28:07
问题 I am trying to make Event Syncing feature for a Project. I need to sync events with the remote server. Let's say I Installed the App in Device A. If I login to another device lets take B, then events synced from A should also appear in Device B, and events of B should also be synced. Now if I again login into the Device A, Events of B should be added. But events previously from A should not again be added to Device A again For this I decided to keep its eventIdentifier on the remote database.

Modifying EKParticipants (attendees) in EventKit like Sunrise

陌路散爱 提交于 2019-12-17 15:43:23
问题 My goal is to add some invitees to an EKEvent . I've looked into other questions like this, such as this one, but all say that it is essentially impossible to add EKParticipant s to an EKEvent programmatically. I do see that the attendees property is read-only, but I see other services like Sunrise using it in their mobile app. I'm confident that they're using some system that at least partially integrates with EventKit because they're pulling in calendars from the user's iCal app. Invites

How to add events in iPhone using Event Kit framework

随声附和 提交于 2019-12-17 10:47:25
问题 I am making a Restaurant application in which i need to add events in calendar, events information are coming from server, if client add any event it should show in calendar for that specified date, i have used event kit frame work and successfully added one event into the calendar, however how to add multiple events in calendar using event kit. 回答1: First of All, Add EventKit Framework and import it in .h file. Like below. #import <EventKit/EventKit.h> See Below Function and Modify it as per

How to add events in iPhone using Event Kit framework

我只是一个虾纸丫 提交于 2019-12-17 10:47:05
问题 I am making a Restaurant application in which i need to add events in calendar, events information are coming from server, if client add any event it should show in calendar for that specified date, i have used event kit frame work and successfully added one event into the calendar, however how to add multiple events in calendar using event kit. 回答1: First of All, Add EventKit Framework and import it in .h file. Like below. #import <EventKit/EventKit.h> See Below Function and Modify it as per

Programatically add a reminder to the Reminders app

百般思念 提交于 2019-12-14 00:24:17
问题 I'm creating a simple note application and I want to implement Reminders. The user would type a note, tap a button and it would set up a reminder in the Reminders app using the text. Is this possible, and if so, how do I do it? I have seen Apple's documentation on EventKit and EKReminders but it has been no help at all. 回答1: From the "Calendars and Reminders Programming Guide"? Specifically "Reading and Writing Reminders" You can create reminders using the reminderWithEventStore: class method

Checking for duplicate events without getting all events in the Event Store in IOS

家住魔仙堡 提交于 2019-12-13 17:45:57
问题 I am adding array of events to IOS calendar.As it has to happing on clicking a button.By doing this all the events are getting added again and again.So to over come that I used NSPredicate to get all the events and doing validation like below NSDate *edate=[formatter dateFromString:startDateString]; NSDate *fdate=[formatter dateFromString:endDateString]; NSLog(@"Start Date is %@",edate); NSLog(@"End Date is %@",fdate); event1.startDate =edate; event1.endDate=fdate; NSArray *caleandarsArray =

How to know which reminder is updated in EKEventStoreChangedNotification

核能气质少年 提交于 2019-12-13 05:47:20
问题 I am integrating iOS reminder app in my application, when i receive EKEventStoreChangedNotification how to know which particular reminder is modified or do I need to fetch all the reminders and update in my application. In the documentation it is written as "you should refetch your current date range of events whenever you receive an EKEventStoreChangedNotification notification" what is current date range? what if the user modified title of a reminder of some future date? 回答1: No, the