title: UITapGestureRecognizer not working when clicking on a DatePicker
body: <p>I am using this code to dismiss keyboard when user click's outside the TextField</p>
  
  <pre><code>override func viewDidLoad() {
     ...
     let tapGesture = UITapGestureRecognizer(target: self, action: "tap:")
     view.addGestureRecognizer(tapGesture)
     ...
  }
  
  func tap(gesture: UITapGestureRecognizer) {
          txtName.resignFirstResponder()
  }
  </code></pre>
  
  <p>It is working when the user click's anywhere outside the textfield but the datepicker. When he put's a name and then click on the DatePicker (just click, not roll) the tap is not recognized.</p>
  
  <p>What should I do to make it work?</p>