title: How to bring up a date picker when a date field is tapped?
body: <p>I have a view with a text field for date. I want the current date to default to "today" but if the user wants to put in a different date, he can tap the field to bring up a date picker (already added to the view). I found a similar question and answer that I though was going to work. I have no errors but when I tap on the date field the keyboard comes up, not the date picker.</p>
  
  <pre><code>@IBOutlet var enterDate: UITextField!
  
  @IBAction func dateTapped(sender: UITextField) {
  
      //code for what to do when date field is tapped
      var datePickerView  : UIDatePicker = UIDatePicker()
      datePickerView.datePickerMode = UIDatePickerMode.Date
      sender.inputView = datePickerView
      datePickerView.addTarget(self, action: Selector("handleDatePicker:"), forControlEvents: UIControlEvents.ValueChanged)
  }
  
  func handleDatePicker(sender: UIDatePicker) {
      var dateFormatter = NSDateFormatter()
      dateFormatter.dateFormat = "dd MMM yyyy"
      enterDate.text = dateFormatter.stringFromDate(sender.date)
  }
  </code></pre>