使用IQKeyboardManager后,在多个TextField中的小问题

场景:在使用多个textfield时。点击其中一个控件,仅仅只是想触发自己写好的方法,而不调用键盘。

- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{
    if (textField == typeTF) {
        if (textField.isAskingCanBecomeFirstResponder == NO) {
            // 方法
            
        }
        return NO;}
    return YES;
}

你可能感兴趣的:(使用IQKeyboardManager后,在多个TextField中的小问题)