我试图在具有 FormSheet 样式的模态视图上隐藏 iPad 键盘。我试图辞职FirstResponder,但没有任何反应。这是一个错误还是根本不起作用?
此致
编辑
-(void)hideKeyboards
{
[emailField resignFirstResponder];
[passwordField resignFirstResponder];
[confirmPasswordField resignFirstResponder];
}
-(IBAction)emailFieldDone:(id)sender
{
[self hideKeyboards];
}
-(IBAction)passwordFieldDone:(id)sender
{
[self hideKeyboards];
}
-(IBAction)confirmPasswordFieldDone:(id)sender
{
[self hideKeyboards];
}