title: Make UIDatePicker display only time when clicking UITextfield
body: <p>I want to, when I click on my UITextfield, make a UIDatePicker pop up, but I only want it to display time, not dates. What I have done so far </p>
  
  <pre><code>-(void)updateTextField:(id)sender
  {
      UIDatePicker *picker = (UIDatePicker*)self.myTextField.inputView;
      self.myTextField.text = [NSString stringWithFormat:@"%@",picker.date];
  }
  - (void)viewDidLoad
  {
      UIDatePicker *datePicker = [[UIDatePicker alloc]init];
      [datePicker setDate:[NSDate date]];
      [datePicker addTarget:self action:@selector(updateTextField:) forControlEvents:UIControlEventValueChanged];
      [self.myTextField setInputView:datePicker];
  }
  </code></pre>
  
  <p>When I then try this in the simulator, this comes up, something I do not want:
  <a href="http://prntscr.com/47rddt" rel="nofollow">http://prntscr.com/47rddt</a></p>