獲取鍵盤焦點和隱藏鍵盤
獲得焦點
迅速
textField.becomeFirstResponder()
Objective-C
[textField becomeFirstResponder];
辭職
迅速
textField.resignFirstResponder()
Objective-C
[textField resignFirstResponder];
textField.becomeFirstResponder()
[textField becomeFirstResponder];
textField.resignFirstResponder()
[textField resignFirstResponder];