ekeventkit

presentModalViewController is taking over whole iPad screen, not just right hand side?

元气小坏坏 提交于 2019-12-12 02:15:22
问题 I'm using the APSplitViewController on the iPad to get two sides. When working within the right hand side I have a viewController that sits inside a UINavigationController . When I modally present EKEventEditViewController (as it has to be modal) it doesn't stay inside the bounds of the right hand side navController but takes over the whole iPad display, and things start getting worse from there... Is there a way to keep the modal view within the context of the local UINavigationController I

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

佐手、 提交于 2019-12-10 04:24:36
问题 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 properties (title and start date for example) in the user's calendar. This could happen if the action button (used to add an event to iCal) is pressed more than once. In such a situation, I don't want two or more identical events being created in iCal.

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

老子叫甜甜 提交于 2019-12-09 01:56:30
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: "fdfgdg" },]} now when user click on particular date A alert will show with that event title. this is my

Deleting an event using Event Kit in iPhone

吃可爱长大的小学妹 提交于 2019-12-08 00:21:21
问题 I am using Event Kit in my iOS application and creating a event using Event Kit. I am able to create it but I want to give the ability to delete also. But I am not able to do that. I know there is a method for EKEventStore to delete event but I am not able to make event object. I have event identifier as a string but I am not able to create an event object using it. Can someone please guide me to do it? Regards Pankaj 回答1: When ever you are creating an event save its id like this: NSString*

Objective c customizing EKEventEditViewController

半世苍凉 提交于 2019-12-07 15:35:34
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; [self.navigationController presentViewController:addController animated:YES completion:nil]; [addController

saveEvent returning “No calendar has been set”

纵然是瞬间 提交于 2019-12-07 06:05:52
问题 I am attempting to save an event into the calendar, from my application. My code works for iOS 7, but on iOS 6 , it returns No calendar has been set. The application prompts for user to grant access to the calendar, on iOS 7. But no such prompt appears for iOS 6. Although the application is granted access in the Settings-> Privacy -> Calendar. And yes, I have already implemented the requestAccessToEntityType:completion: . Here is my code snippet . EKEventStore *objStore = [[EKEventStore alloc

EKEventStore getting events returns empty list

社会主义新天地 提交于 2019-12-06 18:39:08
问题 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 calendar and my created events are shown correctly. Now I want my app to read all those events out of this custom calendar. My events are created with startDate and endDate set to NOW (NSDate alloced with no timeInterval given). NSDate *startDate =

Deleting an event using Event Kit in iPhone

大兔子大兔子 提交于 2019-12-06 06:52:41
I am using Event Kit in my iOS application and creating a event using Event Kit. I am able to create it but I want to give the ability to delete also. But I am not able to do that. I know there is a method for EKEventStore to delete event but I am not able to make event object. I have event identifier as a string but I am not able to create an event object using it. Can someone please guide me to do it? Regards Pankaj Sonu When ever you are creating an event save its id like this: NSString* str = [[NSString alloc] initWithFormat:@"%@", event.eventIdentifier]; pass the id to delete the event,

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

岁酱吖の 提交于 2019-12-06 02:08:05
问题 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]; myEvent.title = @"New Event"; myEvent.startDate = [[NSDate alloc] init]; myEvent.endDate = [[NSDate alloc] init]; myEvent.allDay = YES; [myEvent setCalendar:[eventDB defaultCalendarForNewEvents]]; Now How shall i added an alarm (reminder) for this event ? Thanks

saveEvent returning “No calendar has been set”

空扰寡人 提交于 2019-12-05 15:36:18
I am attempting to save an event into the calendar, from my application. My code works for iOS 7, but on iOS 6 , it returns No calendar has been set. The application prompts for user to grant access to the calendar, on iOS 7. But no such prompt appears for iOS 6. Although the application is granted access in the Settings-> Privacy -> Calendar. And yes, I have already implemented the requestAccessToEntityType:completion: . Here is my code snippet . EKEventStore *objStore = [[EKEventStore alloc]init]; if ([objStore respondsToSelector:@selector(requestAccessToEntityType:completion:)]) { // iOS 6