title: Can not dismiss keyboard iOS. Nothing works
body: <p>I'm new in iOS Development for iPhone. I can not dismiss keyboard, nothing works. Please help me, maybe I didn't notice anything?</p>
  
  <p>My .h file:</p>
  
  <pre><code>#import "UIKit/UIKit.h"
  
  @interface ViewController : UIViewController &lt;UITextViewDelegate&gt;
  @property (weak, nonatomic) IBOutlet UITextField *textField;
  @end
  </code></pre>
  
  <p>My .m file: </p>
  
  <pre><code>#import "ViewController.h"
  #import "UIKit/UIKit.h"
  
  @interface ViewController ()
  
  @end
  
  @implementation ViewController
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  -(BOOL) textFieldShouldReturn: (UITextField *) textField{
      [textField resignFirstResponder];
      return YES;
  }
  @end
  </code></pre>