18 lines
714 B
Objective-C
18 lines
714 B
Objective-C
#import "UIKit/UIKit.h"
|
|
@class EventConfigModel;
|
|
typedef NS_ENUM(NSInteger, CreateEventPickerType) {
|
|
CreateEventPickerTypeDuration = 0,
|
|
CreateEventPickerTypeStartTime = 1
|
|
};
|
|
|
|
@interface CreateEventPickerContainerView : UIView <UIGestureRecognizerDelegate, UIPickerViewDataSource, UIPickerViewDelegate>
|
|
@property (nonatomic, assign) CreateEventPickerType pickerType;
|
|
@property (nonatomic, copy) void (^onConfirmDate)(NSDate *date, NSString *resultString);
|
|
|
|
- (void)showInView:(UIView *)parentView
|
|
initialDate:(NSDate *)date
|
|
config:(EventConfigModel *)config
|
|
pickerType:(CreateEventPickerType)type
|
|
onConfirm:(void (^)(NSDate *date, NSString *resultString))onConfirm;
|
|
@end
|