// // DatePickerViewController.m // RedAnt ERP Mobile // // Created by Ray on 14-7-23. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved. // #import "DatePickerViewController.h" @interface DatePickerViewController () @end @implementation DatePickerViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization } return self; } - (IBAction)ValueChanged:(id)sender { self.labelTime.text =[self.formatter stringFromDate:self.datePicker.date]; } - (IBAction)onSetDateClick:(id)sender { if(self.blk_Set) self.blk_Set(self.labelTime.text); [self.navigationController popViewControllerAnimated:false]; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.datePicker.datePickerMode = self.pickerMode; //self.datePicla self.datePicker.date = self.date; self.labelTime.text =[self.formatter stringFromDate:self.date]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ @end