mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
33 lines
853 B
Objective-C
33 lines
853 B
Objective-C
// Phonegap DatePicker Plugin
|
|
// Copyright (c) Greg Allen 2011
|
|
// MIT Licensed
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#ifdef CORDOVA_FRAMEWORK
|
|
#import <Cordova/CDVPlugin.h>
|
|
#else
|
|
#import "CDVPlugin.h"
|
|
#endif
|
|
|
|
#ifndef k_DATEPICKER_DATETIME_FORMAT
|
|
#define k_DATEPICKER_DATETIME_FORMAT @"yyyy-MM-dd'T'HH:mm:ss'Z'"
|
|
#endif
|
|
|
|
@interface DatePicker : CDVPlugin <UIActionSheetDelegate> {
|
|
UIActionSheet *_datePickerSheet;
|
|
UIDatePicker *_datePicker;
|
|
NSDateFormatter *_isoDateFormatter;
|
|
BOOL isVisible;
|
|
|
|
}
|
|
|
|
@property (nonatomic, retain) UIActionSheet* datePickerSheet;
|
|
@property (nonatomic, retain) UIDatePicker* datePicker;
|
|
@property (nonatomic, retain) NSDateFormatter* isoDateFormatter;
|
|
|
|
|
|
//- (void) prepare:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
|
- (void) show:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
|
|
|
@end
|