eventkit

Does the iOS SDK give access to the Calendar picker used by iPhone's built-in Calenar app?

北慕城南 提交于 2019-12-13 05:43:56
问题 I've dug around a bit in the Eventkit/EventkitUI docs and couldn't find an answer. Does the iOS SDK provide a way to display the Calendar chooser view that the built-in Calendar app uses when you want to move an event to a different calendar? If not, what would be the best way to build that? How do I know which account each calendar is from? How do I display the little color dot? Are there any 3rd party libraries that provide something like this? Thanks! EDIT: Specifically I'm asking about

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

iOS EventKit: EKCalendar named “Calendar”? What is it?

烂漫一生 提交于 2019-12-13 00:35:15
问题 When I query the EKCalendars on my iPad via -[EKEventStore calendars], an EKCalendar called "Calendar" is always returned. It has a type of "Local" and never has any events. (Note: the same calendar is also returned via the iOS Simulator on the desktop.) The Calendar app on my iPad doesn't list this calendar. Should my app? Or should I exclude it from display, like Calendar app? Thanks. 来源: https://stackoverflow.com/questions/9626870/ios-eventkit-ekcalendar-named-calendar-what-is-it

FSCalender Events Show in swift

為{幸葍}努か 提交于 2019-12-12 03:35:23
问题 I am new to swift, Am using Fscalender in swift it's working fine, But I want add the Events to Fscalender, I can get events from Json I Want Display the events in calender, I can try some of the code but its not working getting some errors pls help how to display events in calender var EventsData = [Event]() all events are stored Into Event fileprivate lazy var dateFormatter2: DateFormatter = { let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd" return formatter }() inside

Properly subclassing the EKEvent Class

不想你离开。 提交于 2019-12-11 08:12:03
问题 I have been having a bit of trouble sublclassing the EKEvent Class. The scenario is this, I am pulling all my events from an external database using a webservice, so all the events come with an ID. I then want to put these events into the device calendar and retrieve them later. The problem is, when I retrieve the event I need it to have the same id as the event on the server so I can do a quick look up to get additional info on the event. I am aware that the identifier property of EKEvent is

Can't create local calendar on iOS

核能气质少年 提交于 2019-12-11 06:30:38
问题 I am attempting to create a local calendar on iOS. I request access to EKEntityTypeEvent and have it granted, create the calendar from the EKEventStore (yes, the same instance I requested access from), find the EKSourceTypeLocal then set it on my new calendar. Calling saveCalendar:commit:error (with commit:YES ) returns YES and there is no NSError . The resulting calendar has a calendarIdentifier assigned. But then when I flip to the iOS Calendar app, my calendar is not there! I've tried on

Is it possible to attach a file to an ios calender event?

谁都会走 提交于 2019-12-11 02:36:57
问题 In Mac OS it is possible to attach files to a calender event and read that files on the iOS calender. Question: Is it possible to attach a file to an iOS calender event using the Event Kit framework? I could not find any hint in the Event Kit documentation 回答1: The short answer to your question is no - there is no way to attach a file to an iOS Calendar Event. Why? Because there is no place to put a file. Looking at the EKEvent Class Reference turns up a short list of properties, none of

Launch my application from default calendar

旧城冷巷雨未停 提交于 2019-12-10 19:28:54
问题 I have just added one event on iphone calendar from below code: EKEventStore *store=[[EKEventStore alloc] init]; [store requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) { if (!granted) { return ; } EKEvent *event=[EKEvent eventWithEventStore:store]; event.title=@"This is the event"; event.startDate=[NSDate date]; event.endDate =[event.startDate dateByAddingTimeInterval:60*60]; event.allDay=YES; NSURL *url=[NSURL URLWithString:@"http://www.google.com"];

EKCalendarChooser new Calendar

99封情书 提交于 2019-12-10 11:49:22
问题 Is it possible to show the enable adding new calendars in EKCalendarChooser just like the default iPhone Calendar app shows the + in the upper left corner and allows you to define you calendars? 回答1: I've been seeking the same ready-to-use solution for almost a day and no luck so far.. The good thing is, however, that you can call [yourEKCalendarChooserInstance setEditing:YES]; And It will show you the "Add Calendar" row But the bad thing is that nothing happens on click/select. That's all I

EKParticipant in EventKit erroneously returns NO for isCurrentUser property

与世无争的帅哥 提交于 2019-12-09 07:36:09
问题 I'm attempting to determine which of an EKEvent's attendees ( EKPartipants ) is the current user. In iOS6, EKParticipant exposes a property called isCurrentUser http://developer.apple.com/library/ios/#documentation/EventKit/Reference/EKParticipantClassRef/Reference/Reference.html#//apple_ref/occ/cl/EKParticipant which is supposed to provide precisely this information. Unfortunately, each time I lookup an EKParticipant's isCurrentUser property, it returns NO, even when that's clearly not the