// // UIViewControllerDateRangeEditor.h // UIViewControllerDateRangeEditor // #import @interface UIViewControllerDateRangeEditor : UIViewController { @private // ---------------------------------------- // control objects // ---------------------------------------- IBOutlet UIBarButtonItem * leftBarButton; IBOutlet UIBarButtonItem * rightBarButton; // ---------------------------------------- // ---------------------------------------- // Display Content // ---------------------------------------- IBOutlet UILabel * startLabel; IBOutlet UILabel * startDate; IBOutlet UILabel * endLabel; IBOutlet UILabel * endDate; // ---------------------------------------- // ---------------------------------------- // control objects // ---------------------------------------- IBOutlet UIDatePicker * datePicker; // ---------------------------------------- // ---------------------------------------- // Start Date Colors // ---------------------------------------- UIColor * normalColor; UIColor * highlightColor; // ---------------------------------------- // ---------------------------------------- // Buttons // ---------------------------------------- IBOutlet UIButton * buttonStart; UIButton * buttonSelected; UIImage * buttonImage; // ---------------------------------------- // ---------------------------------------- // Date Formatter // ---------------------------------------- NSDateFormatter * dateFormatter; // ---------------------------------------- // ---------------------------------------- // current dateValue // ---------------------------------------- NSTimeInterval startTimeInterval; NSTimeInterval endTimeInterval; NSTimeInterval minTimeInterval; NSTimeInterval maxTimeInterval; // ---------------------------------------- // ---------------------------------------- Boolean editingStartDate; Boolean savePressed; Boolean delayReset; // ---------------------------------------- } @property (nonatomic) NSTimeInterval startTimeInterval; @property (nonatomic) NSTimeInterval endTimeInterval; @property (nonatomic) NSTimeInterval minTimeInterval; @property (nonatomic) NSTimeInterval maxTimeInterval; @property (nonatomic, readonly) Boolean savePressed; - (void) reset; - (IBAction) cancel:(id)sender; - (IBAction) save:(id)sender; - (IBAction) dateChanged:(id)sender; - (IBAction) selectStartDate:(id)sender; - (IBAction) selectEndDate:(id)sender; @end