DatePickerViewController.m 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // DatePickerViewController.m
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 14-7-23.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import "DatePickerViewController.h"
  9. @interface DatePickerViewController ()
  10. @end
  11. @implementation DatePickerViewController
  12. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  13. {
  14. self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  15. if (self) {
  16. // Custom initialization
  17. }
  18. return self;
  19. }
  20. - (IBAction)ValueChanged:(id)sender {
  21. self.labelTime.text =[self.formatter stringFromDate:self.datePicker.date];
  22. }
  23. - (void)viewDidLoad
  24. {
  25. [super viewDidLoad];
  26. // Do any additional setup after loading the view.
  27. self.datePicker.datePickerMode = self.pickerMode;
  28. //self.datePicla
  29. self.datePicker.date = self.date;
  30. self.labelTime.text =[self.formatter stringFromDate:self.date];
  31. }
  32. - (void)didReceiveMemoryWarning
  33. {
  34. [super didReceiveMemoryWarning];
  35. // Dispose of any resources that can be recreated.
  36. }
  37. /*
  38. #pragma mark - Navigation
  39. // In a storyboard-based application, you will often want to do a little preparation before navigation
  40. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  41. {
  42. // Get the new view controller using [segue destinationViewController].
  43. // Pass the selected object to the new view controller.
  44. }
  45. */
  46. @end