-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventViewAndEditController.h
42 lines (33 loc) · 1.09 KB
/
EventViewAndEditController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// EventViewControllerCustomDelegate.h
// BPTracker
//
// Created by Robert Saccone on 3/3/12.
// Copyright (c) 2017 Robert Saccone. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <EventKitUI/EKEventViewController.h>
#import <EventKitUI/EKEventEditViewController.h>
typedef enum
{
EventViewAndEditActionCanceled,
EventViewAndEditActionDone,
EventViewAndEditActionSaved,
EventViewAndEditActionResponded,
EventViewAndEditActionDeleted
} EventViewAndEditAction;
@class EventViewAndEditController;
@protocol EventViewAndEditDelegate<NSObject>
- (void)eventViewAndEditController:(EventViewAndEditController *)controller didCompleteWithAction:(EventViewAndEditAction)action;
@end
@interface EventViewAndEditController : EKEventViewController
{
@private
EKEventStore *eventStore_;
NSString *origEventId_;
id<EventViewAndEditDelegate> __weak eventViewAndEditDelegate_;
}
@property(nonatomic, strong) EKEventStore *eventStore;
@property(nonatomic, copy) NSString *origEventId;
@property(nonatomic, weak) id<EventViewAndEditDelegate> eventViewAndEditDelegate;
@end