Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does resignFirstResponder mean?

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?

like image 407
Adam Lee Avatar asked Nov 19 '25 13:11

Adam Lee


1 Answers

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.

like image 60
skyzb Avatar answered Nov 21 '25 03:11

skyzb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!