我有兩個文本字段。我在textFieldDidBeginEditing
中使用這段代碼,但它並沒有關閉鍵盤。IQKeyboardManager隱藏鍵盤時點擊UITextField
-(void)textFieldDidBeginEditing:(UITextField *)textField {
if(textField==textFieldOne)
{
}
else if (textField==textFieldTwo)
{
[[IQKeyboardManager sharedManager]resignFirstResponder]
}
}
你得到解決? –