What does resignFirstResponder mean?

cocoa-touch, ios

Solution

I have no idea what you are talking about, but resignFirstResponder will cause the textbox that currently has focus to release focus and the keyboard will hide.

Problem

In the login page, there are two text input (text1 and text2) to input username and password. After click login, it calls two `resignFirstResponder` on those two text boxs. I am wondering why need to call this method?

Original source