title: Show datepicker on textfield tap
body: <p>I'm very new to iOS so obviously I'm missing a few concepts when trying to follow this solution <a href="https://stackoverflow.com/questions/6074683/display-datepicker-on-tapping-on-textfield">Display datepicker on tapping on textfield</a>  to my problem.</p>
  
  <p>I have the interface and implementation in a class called DatepickerAppDelegate, but I'm lost here:</p>
  
  <p><em>"In the XIB, Pull out a UIToolbar and a UIDatePicker but don't attach it to the view. Connect the outlets appropriately. dateChanged: responds to changes in the date picker and doneEditing: is called when the Done button in the tool bar is clicked. Connect them too. The methods are implemented as listed below."</em></p>
  
  <p>I read something about XIB's but I'm using a storyboard, so I think I don't have then. Also, I'm not sure how I'm supposed to pull out elements without attaching it to my view controllers (I'm trying, but when I release the mouse button, the tool flies back to the toolbar), and I don't even understand why I need a UIToolbar.</p>
  
  <p>And finally, how do I connect my textfield to the datepicker delegate?</p>
  
  <p>Can someone help me?</p>
  
  <p>UPDATE: </p>
  
  <p>In fact it is very simple, I just need to:</p>
  
  <pre><code>datePicker = [[UIDatePicker alloc] init];
  datePicker.datePickerMode = UIDatePickerModeDate;
  [datePicker addTarget:self action:@selector(datePickerValueChanged:) forControlEvents:UIControlEventValueChanged];
  
  self.birthday.inputView = datePicker;
  </code></pre>