1. 点击界面收回键盘:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{//点击空白处收回键盘
if ([phoneNumberTF isFirstResponder]) {
[phoneNumberTF resignFirstResponder];
}
if ([passwordTF isFirstResponder]) {
[passwordTF resignFirstResponder];
}
}
2. 键盘 keyboard Type对应界面:
网友评论