(Optional) Notice that once you have entered
text in the text field, a keyboard pops up but
it does not disappear when you are done even if you
click on the return key.
You can arrange for this to be done by assigning
a delegate to the text field.
Control drag from the text field to the Controller
object shown at the bottom of the storyboard,
and select "delegate" once the popover appears.
Refer to the screen below:
Then, in ViewController.m, insert the following
code right before @end.
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
[theTextField resignFirstResponder];
return YES;
}