Interface EKEventEditViewDelegate


  • public interface EKEventEditViewDelegate
    [@enum] EKEventEditViewDelegate Delegate protocol for event edit view controller.
    • Method Detail

      • eventEditViewControllerDidCompleteWithAction

        void eventEditViewControllerDidCompleteWithAction​(EKEventEditViewController controller,
                                                          long action)
        eventEditViewController:didCompleteWithAction: Called to let delegate know the controller is done editing. When the user presses Cancel, presses Done, or deletes the event, this method is called. Your delegate is responsible for dismissing the controller. If the editing session is terminated programmatically using cancelEditing, this method will not be called.
        Parameters:
        controller - the controller in question
        action - the action that is causing the dismissal
      • eventEditViewControllerDefaultCalendarForNewEvents

        default EKCalendar eventEditViewControllerDefaultCalendarForNewEvents​(EKEventEditViewController controller)
        eventEditViewControllerDefaultCalendarForNewEvents: Allows you to supply your own default calendar for new events. This delegate method allows you to control what the editor chooses for the default calendar if it needs to fill in a calendar. This might be necessary if you either don't pass an initial event to the view controller, or you do, but you did not supply a calendar. In these cases, we we set the calendar to a default. If this is not implemented by the delegate, the controller will use the store's defaultCalendarForNewEvents.