美文网首页
使用IQKeyboardManager后,在多个TextFiel

使用IQKeyboardManager后,在多个TextFiel

作者: L_Divano | 来源:发表于2017-08-21 10:27 被阅读0次

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

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

相关文章

网友评论

      本文标题:使用IQKeyboardManager后,在多个TextFiel

      本文链接:https://www.haomeiwen.com/subject/fgkcdxtx.html