Files
phonegap-plugins/iOS/DatePicker/DatePicker.h
2012-03-14 11:47:46 +00:00

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