title: hide keyboard for text field in swift programming language
body: <p>I have little experience in Objective-C. I want to hide the keyboard for a text field using the Swift programming language.</p>
  
  <p>I also tried this</p>
  
  <pre><code>func textFieldShouldReturn(textField: UITextField!) -&gt; Bool // called when 'return' key pressed. return NO to ignore.
  {
      return true;
  }
  </code></pre>
  
  <p>But the method is not getting triggered when I hit return. Anyone have any luck with this?</p>